From cddb285cdbdfa48bd3db8093eaabdd1ffeed3e36 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Tue, 12 Mar 2019 20:04:08 +0100 Subject: [PATCH] Fixed bug 4513 - Wayland, fix crash when remove event is sent (from Sebastian Krzyszkowiak) --- src/video/wayland/SDL_waylandvideo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index a315f8530..a8bc6e034 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -392,9 +392,12 @@ display_handle_global(void *data, struct wl_registry *registry, uint32_t id, } } +static void +display_remove_global(void *data, struct wl_registry *registry, uint32_t id) {} + static const struct wl_registry_listener registry_listener = { display_handle_global, - NULL, /* global_remove */ + display_remove_global }; int