GNOME Bugzilla – Bug 645176
Closing display causes segfault
Last modified: 2014-01-25 02:19:47 UTC
Closing the default display causes a segfault.
Created attachment 183761 [details] [review] Fix closing default display
Created attachment 183797 [details] [review] Fix closing the default display v2
Review of attachment 183797 [details] [review]: ::: gdk/gdkdisplay.c @@ +137,3 @@ + if (info->toplevel_under_pointer != NULL) + g_object_unref (info->toplevel_under_pointer); + This looks right, other places do check toplevel_under_pointer before using it. ::: gdk/x11/gdkdevicemanager-core-x11.c @@ +124,1 @@ How can these be NULL ? that looks like a bug ::: gdk/x11/gdkdisplay-x11.c @@ +1864,3 @@ + if (display == NULL) + return; + This check should be in the caller, gdk_x11_display_manager_set_default_display ::: gdk/x11/gdkscreen-x11.c @@ +208,3 @@ G_OBJECT_CLASS (gdk_x11_screen_parent_class)->finalize (object); + + x11_screen->xdisplay = NULL; This looks wrong. If x11_screen->xdisplay is accessed in the parent class finalizer, that is a bug that needs fixing.
Committed the correct parts of this patch.
*** Bug 644812 has been marked as a duplicate of this bug. ***
Hi Garrett did the commit from Matthias fix the problem? Can this bug be closed?
*** This bug has been marked as a duplicate of bug 85715 ***