Free an Image
BlitzMax Forums/BlitzMax Programming/Free an Image
| ||
How do you free the memory of an image loaded with LoadImage()? Thanks! |
| ||
That's what the garbage collector is there to do for you. |
| ||
Global Image:TImage = LoadImage("blah.png") Image = Null ' This should allow the GC to free up resources associated with the image. This same will apply when the variable associated with the TImage goes out of scope. At least that's how it should work :P |
| ||
Ahh Great! Thanks |