memory not restored?

BlitzMax Forums/BlitzMax Programming/memory not restored?

Anyone know why this is?
pix is an integer handle and needs to be released.

If you must use integer handles...
Graphics 320,240,0

Local test:timage
Repeat
	test:timage=CreateImage(32,32)
	
	pix=LockImage(test)
	UnlockImage(test)
	Release pix

	FlushMem
	Flip
	Print MemAlloced()
	WaitKey
Until KeyDown(key_escape)
...Just don't use em! ;o)