Memory leak using CreateImage and FreeImage

Blitz3D Forums/Blitz3D Programming/Memory leak using CreateImage and FreeImage

I now tried Blitz3D versions from 1.87 up to 1.93, and the memory leak appears for the first time in 1.93.

Running this
While(Not(KeyHit(1)))
	image = CreateImage(100,20)
	FreeImage(image)
Wend
results in a MAV after 10 seconds.

It would be better to create the images once then reuse them. At least that's a much better programming style.
Yes that would be possible in my case. I am using this in a bitmap font system. When the player has a new score, the old image is replaced by a new one, and as you say I could instead re-use the old image and just clear it and redraw the score.

However in principle there shouldn't be a problem, and there was no problem in earlier versions of Blitz.