On Sunday, 5 May 2013 at 06:35:38 UTC, Namespace wrote:
Quick question: I have a SDL_Surface in one of my classes and the SDL_Surface contains (obviously) memory to the pixel data. Since I cannot free this memory with the DTor: what will happen? AFAIK this cannot be freed by the GC because it was not allocated by it. So AFAIK this creates a memory leak. Am I right?

Why can't you free the memory from the destructor?

Reply via email to