Haiku: Fixed memory leak if creating framebuffer failed.
diff --git a/src/video/haiku/SDL_bframebuffer.cc b/src/video/haiku/SDL_bframebuffer.cc
index a6836e6..04065bc 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");
}