Haiku: Fixed memory leak if creating framebuffer failed.

This commit is contained in:
Philipp Wiesemann 2017-01-22 22:15:36 +01:00
parent 330f2911c2
commit 4f981df37f
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}