mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 19:07:40 +00:00
Haiku: Fixed memory leak if creating framebuffer failed.
This commit is contained in:
parent
330f2911c2
commit
4f981df37f
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ int BE_CreateWindowFramebuffer(_THIS, SDL_Window * window,
|
||||||
true); /* Contiguous memory required */
|
true); /* Contiguous memory required */
|
||||||
|
|
||||||
if(bitmap->InitCheck() != B_OK) {
|
if(bitmap->InitCheck() != B_OK) {
|
||||||
|
delete bitmap;
|
||||||
return SDL_SetError("Could not initialize back buffer!\n");
|
return SDL_SetError("Could not initialize back buffer!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue