diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index e10467502..5918e38d5 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -401,7 +401,7 @@ static void pending_buffer_resource_destroyed (MetaWaylandBuffer *buffer, MetaWaylandPendingState *pending) { - g_signal_handler_disconnect (buffer, pending->buffer_destroy_handler_id); + g_clear_signal_handler (&pending->buffer_destroy_handler_id, buffer); pending->buffer = NULL; }