mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 21:17:45 +00:00
Haiku: Fixed memory leak if creating framebuffer failed.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user