ImageGear for C and C++ on Linux v19.10 - Updated
Deleting DIBs and DDBs
User Guide > How to Work with... > Common Operations > Manipulating Image Data > Work with Image Utility Functions > Deleting DIBs and DDBs

This section provides information about how to delete DIBs and DDBs.

Note that in all the above cases, ImageGear will not release memory that it did not allocate. For example, assume your application has allocated memory, created a DIB, and subsequently used an IG_image_DIB_import() call to give this DIB a HIGEAR handle. In this case, a later call to IG_image_delete() will delete the HIGEAR structure but will not free the DIB's memory. The owner of the DIB's memory (in this case, your application) would issue a Windows DeleteObject() call to free this memory.