diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c index e23fd25bb3..8488b64b2f 100644 --- a/gdk/win32/gdkdisplay-win32.c +++ b/gdk/win32/gdkdisplay-win32.c @@ -801,8 +801,6 @@ gdk_win32_display_dispose (GObject *object) { GdkWin32Display *display_win32 = GDK_WIN32_DISPLAY (object); - _gdk_screen_close (display_win32->screen); - if (display_win32->hwnd != NULL) { DestroyWindow (display_win32->hwnd); diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index d35e508920..1669ba5416 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -2033,8 +2033,6 @@ gdk_x11_display_dispose (GObject *object) { GdkX11Display *display_x11 = GDK_X11_DISPLAY (object); - _gdk_screen_close (display_x11->screen); - if (display_x11->event_source) { g_source_destroy (display_x11->event_source);