Skip to content

Commit

Permalink
Haiku: Fixed memory leak if creating framebuffer failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jan 22, 2017
1 parent 330f291 commit 4f981df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/haiku/SDL_bframebuffer.cc
Expand Up @@ -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");
}

Expand Down

0 comments on commit 4f981df

Please sign in to comment.