From bd01a9c9146dd96d93042520a39a41a594f76e69 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 3 Feb 2014 11:53:21 -0500 Subject: [PATCH] Unload Wayland libs if memory allocation fails during init. --- src/video/wayland/SDL_waylandvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index bc935b9bd..43826b831 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -95,6 +95,7 @@ Wayland_CreateDevice(int devindex) /* Initialize all variables that we clean on shutdown */ device = SDL_calloc(1, sizeof(SDL_VideoDevice)); if (!device) { + SDL_WAYLAND_UnloadSymbols(); SDL_OutOfMemory(); return NULL; }