haiku: Fixed memory leak if destroying window.

This commit is contained in:
Philipp Wiesemann
2017-07-01 23:01:57 +02:00
parent ede3361bb4
commit b66c3f7ffd

View File

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