Skip to content

Commit

Permalink
haiku: Fixed memory leak if destroying window.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 1, 2017
1 parent 380e069 commit b1fbab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/haiku/SDL_BWin.h
Expand Up @@ -115,6 +115,8 @@ class SDL_BWin:public BDirectWindow
}
#endif

delete _prev_frame;

/* Clean up framebuffer stuff */
_buffer_locker->Lock();
#ifdef DRAWTHREAD
Expand Down

0 comments on commit b1fbab5

Please sign in to comment.