memory not restored?

BlitzMax Forums/BlitzMax Programming/memory not restored?

Graphics 320,240,0

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

	FlushMem
	Flip
	Print MemAlloced()
	WaitKey
Until KeyDown(key_escape)