mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
This commit is contained in:
parent
fa77df4e91
commit
35da130828
@ -130,6 +130,7 @@ create_buffer_from_shm(Wayland_CursorData *d,
|
|||||||
d->shm_data = NULL;
|
d->shm_data = NULL;
|
||||||
fprintf (stderr, "mmap () failed\n");
|
fprintf (stderr, "mmap () failed\n");
|
||||||
close (shm_fd);
|
close (shm_fd);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
shm_pool = wl_shm_create_pool(data->shm, shm_fd, size);
|
shm_pool = wl_shm_create_pool(data->shm, shm_fd, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user