mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed memory leaks if Windows initialization fails
This commit is contained in:
parent
d199586683
commit
82b3325978
1 changed files with 1 additions and 0 deletions
|
|
@ -135,6 +135,7 @@ static SDL_VideoDevice *WIN_CreateDevice(void)
|
|||
data = NULL;
|
||||
}
|
||||
if (!data) {
|
||||
SDL_UnregisterApp();
|
||||
SDL_free(device);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue