C Memory

Namespace rswhite4 at googlemail.com
Sat May 4 23:35:35 PDT 2013


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?


More information about the Digitalmars-d-learn mailing list