From 07b0da615b4a30295ee78f349ce987d07518fe9e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 May 2019 10:55:06 +0000 Subject: [PATCH] win32: Disconnect the frame clock The frame clock can now survive the surface, so we need to disconnect when the surface goes away. --- gdk/win32/gdksurface-win32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index e8df18b566..bad6006021 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -686,6 +686,10 @@ gdk_win32_surface_destroy (GdkSurface *window, /* Remove ourself from the modal stack */ _gdk_remove_modal_window (window); + g_signal_handlers_disconnect_by_func (gdk_surface_get_frame_clock (window), + gdk_win32_impl_frame_clock_after_paint, + window); + /* Remove all our transient children */ while (surface->transient_children != NULL) {