mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-23 06:38:55 +00:00
wayland: Free the input struct in all initialization failure paths
This commit is contained in:
@@ -222,6 +222,7 @@ static SDL_VideoDevice *Wayland_CreateDevice(void)
|
|||||||
/* 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_free(input);
|
||||||
SDL_free(data);
|
SDL_free(data);
|
||||||
WAYLAND_wl_display_disconnect(display);
|
WAYLAND_wl_display_disconnect(display);
|
||||||
SDL_WAYLAND_UnloadSymbols();
|
SDL_WAYLAND_UnloadSymbols();
|
||||||
|
|||||||
Reference in New Issue
Block a user