Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
authorPhilipp Wiesemann
Wed, 16 Mar 2016 22:09:39 +0100
changeset 10120f49e8a97c214
parent 10119 ac9831ff70d1
child 10121 6b6ded44e6e0
Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
src/video/wayland/SDL_waylandmouse.c
     1.1 --- a/src/video/wayland/SDL_waylandmouse.c	Wed Mar 16 22:09:23 2016 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandmouse.c	Wed Mar 16 22:09:39 2016 +0100
     1.3 @@ -130,6 +130,7 @@
     1.4          d->shm_data = NULL;
     1.5          fprintf (stderr, "mmap () failed\n");
     1.6          close (shm_fd);
     1.7 +        return -1;
     1.8      }
     1.9  
    1.10      shm_pool = wl_shm_create_pool(data->shm, shm_fd, size);