PhABResExportCommon_t.free_image()

A function exported by PhAB to free an image created with alloc_image()

Synopsis:

void free_image  ( PhImage_t *p )

Arguments:

p
A pointer to the image date you want to free, returned by alloc_image().

Description:

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.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

alloc_image(), PhABResExportCommon_t