Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wayland: Fixed crash if memory mapping failed while creating a custom…
… cursor.
  • Loading branch information
philippwiesemann committed Mar 16, 2016
1 parent fa77df4 commit 35da130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandmouse.c
Expand Up @@ -130,6 +130,7 @@ create_buffer_from_shm(Wayland_CursorData *d,
d->shm_data = NULL;
fprintf (stderr, "mmap () failed\n");
close (shm_fd);
return -1;
}

shm_pool = wl_shm_create_pool(data->shm, shm_fd, size);
Expand Down

0 comments on commit 35da130

Please sign in to comment.