mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Unload Wayland libs if memory allocation fails during init.
This commit is contained in:
parent
89fd0faf5e
commit
bd01a9c914
@ -95,6 +95,7 @@ Wayland_CreateDevice(int devindex)
|
|||||||
/* Initialize all variables that we clean on shutdown */
|
/* Initialize all variables that we clean on shutdown */
|
||||||
device = SDL_calloc(1, sizeof(SDL_VideoDevice));
|
device = SDL_calloc(1, sizeof(SDL_VideoDevice));
|
||||||
if (!device) {
|
if (!device) {
|
||||||
|
SDL_WAYLAND_UnloadSymbols();
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user