mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed memory leaks if Windows initialization fails
This commit is contained in:
@@ -135,6 +135,7 @@ static SDL_VideoDevice *WIN_CreateDevice(void)
|
|||||||
data = NULL;
|
data = NULL;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
SDL_UnregisterApp();
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user