pmc/surface.cc
changeset 54 c064ce9f40f5
parent 46 4b9e1ac40246
child 65 76514757b0d6
--- a/pmc/surface.cc
+++ b/pmc/surface.cc
@@ -25,10 +25,13 @@
 
     color = red;
     bpp = screen->format->BytesPerPixel;
+
+    refCounter++;
 }
 
 Surface::~Surface ()
 {
+    SDL_FreeSurface (screen);
     SDL_Quit ();
 }