memory leak issues

BlitzPlus Forums/BlitzPlus Programming/memory leak issues

luke101(Posted 2004) [#1]
Hello, I am have a small memory leak in my program. I allocated memory locally for an image in a function. I thought when the program leaves the function it cleans up all the local variables. But, this is false local variables still stay in memory and has to be cleaned up mauually.

I still have memory leaks in my program. Is there anything else I should clean up besides local variables that hold images??

I will appreciate any help


skn3(Posted 2004) [#2]
It clears the local values yes. But your local variable, is just a pointer to the image. So it will not free it, you have to call freeimage(...) to do this.