Releasing LoadImage memory under MAX 1.14

BlitzMax Forums/BlitzMax Beginners Area/Releasing LoadImage memory under MAX 1.14

Under BlitzMax 1.14, I had to add :TImage to the line to load an image. However, now my Release command no longer works. The error message is "Subexpression for release must be an integer variable"

	Local MyImage:TImage=LoadImage("MyPicture.bmp")
	Release MyImage


Now, I know that BlitzMax has its own memory cleanup no but how do I free up the memory correctly now (without BlitzMax own cleanup)?

Sin