Commit b1fbab50c528a51285a2cc5d4e9742c465798ecc

Philipp Wiesemann 2017-07-01T23:01:57

haiku: Fixed memory leak if destroying window.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/haiku/SDL_BWin.h b/src/video/haiku/SDL_BWin.h
index 17fd253..97cd311 100644
--- a/src/video/haiku/SDL_BWin.h
+++ b/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