how do I free stuff?

BlitzMax Forums/BlitzMax Programming/how do I free stuff?

ok thanks

I made this
Print MemAlloced()+"    beginning"
Graphics 800,600
Print MemAlloced()+"    after graphics"
i=CreateImage(400,400)
Print MemAlloced()+"    after createimage"
'i=Null
Release i
Print MemAlloced()+"    after release image"
flushmem
Print MemAlloced()+"    after flushmem"
EndGraphics
Print MemAlloced()+"    after endgraphics"
end


eraseing all refrences to the image and flushmem does not free it.
you have to use the Release command