Sfoglia il codice sorgente

haiku: Fixed memory leak if destroying window.

Philipp Wiesemann 7 anni fa
parent
commit
b1fbab50c5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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