Freeing Images Within Types

BlitzPlus Forums/BlitzPlus Programming/Freeing Images Within Types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I make a type and one of the fields is a pointer to an image that I load in or create, when I call Delete TheType, does Blitz automatically free the image as well or should I make a destructor?

Also if I need a destructor so that I can create and free TheType multiple times in my game, would I need a destructor if TheType is only declared once as I know that blitz attempts some kind of cleanup on exit? In fact does Blitz free up types on exit if you don't!?

Cheerz