Explorar el Código

haiku: Fixed memory leak if destroying window.

Philipp Wiesemann hace 8 años
padre
commit
b1fbab50c5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/video/haiku/SDL_BWin.h

+ 2 - 0
src/video/haiku/SDL_BWin.h

@@ -115,6 +115,8 @@ class SDL_BWin:public BDirectWindow
         }
 #endif
 
+        delete _prev_frame;
+
         /* Clean up framebuffer stuff */
         _buffer_locker->Lock();
 #ifdef DRAWTHREAD