A function exported by PhAB to free an image created with alloc_image()
void free_image ( PhImage_t *p )
This function is exported from PhAB in the PhABResExportCommon_t structure.
This function should be used by the plugin to free the image allocated using the PhAB exported alloc_image() function.
Because the flags member is set to Ph_RELEASE_IMAGE_ALL when an image is allocated with alloc_image(), all the fields of the new image that required allocating memory are released when the image is released.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
alloc_image(), PhABResExportCommon_t