From b1fbab50c528a51285a2cc5d4e9742c465798ecc Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 1 Jul 2017 23:01:57 +0200 Subject: [PATCH] haiku: Fixed memory leak if destroying window. --- src/video/haiku/SDL_BWin.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/haiku/SDL_BWin.h b/src/video/haiku/SDL_BWin.h index 17fd25372ede9..97cd311e375a0 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