mirror of https://github.com/encounter/SDL.git
Haiku: Fixed memory leak if creating framebuffer failed.
This commit is contained in:
parent
330f2911c2
commit
4f981df37f
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue