From 4f981df37f5ad1d894b64e9a144542099aa16907 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 22 Jan 2017 22:15:36 +0100 Subject: [PATCH] Haiku: Fixed memory leak if creating framebuffer failed. --- src/video/haiku/SDL_bframebuffer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/haiku/SDL_bframebuffer.cc b/src/video/haiku/SDL_bframebuffer.cc index a6836e6e0..04065bc49 100644 --- a/src/video/haiku/SDL_bframebuffer.cc +++ b/src/video/haiku/SDL_bframebuffer.cc @@ -76,6 +76,7 @@ int BE_CreateWindowFramebuffer(_THIS, SDL_Window * window, true); /* Contiguous memory required */ if(bitmap->InitCheck() != B_OK) { + delete bitmap; return SDL_SetError("Could not initialize back buffer!\n"); }