Unload Wayland libs if memory allocation fails during init.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 03 Feb 2014 11:53:21 -0500
changeset 816071639d445b59
parent 8159 427e8fdf6f69
child 8161 6c5d35c8b3dd
Unload Wayland libs if memory allocation fails during init.
src/video/wayland/SDL_waylandvideo.c
     1.1 --- a/src/video/wayland/SDL_waylandvideo.c	Mon Feb 03 11:52:54 2014 -0500
     1.2 +++ b/src/video/wayland/SDL_waylandvideo.c	Mon Feb 03 11:53:21 2014 -0500
     1.3 @@ -95,6 +95,7 @@
     1.4      /* Initialize all variables that we clean on shutdown */
     1.5      device = SDL_calloc(1, sizeof(SDL_VideoDevice));
     1.6      if (!device) {
     1.7 +        SDL_WAYLAND_UnloadSymbols();
     1.8          SDL_OutOfMemory();
     1.9          return NULL;
    1.10      }