destroy display->xid_ht as late as possible (right before XCloseDisplay)
2005-11-15 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy display->xid_ht as late as possible (right before XCloseDisplay) because it still needs to be around when the display's screens are finalized. (#85715)
This commit is contained in:
committed by
Michael Natterer
parent
c66f47d451
commit
1500848841
@ -769,9 +769,6 @@ gdk_display_x11_finalize (GObject *object)
|
||||
g_slist_foreach (display_x11->event_types, (GFunc)g_free, NULL);
|
||||
g_slist_free (display_x11->event_types);
|
||||
|
||||
/* X ID hashtable */
|
||||
g_hash_table_destroy (display_x11->xid_ht);
|
||||
|
||||
/* input GdkDevice list */
|
||||
/* FIXME need to write finalize fct */
|
||||
g_list_foreach (display_x11->input_devices, (GFunc) g_object_unref, NULL);
|
||||
@ -789,6 +786,9 @@ gdk_display_x11_finalize (GObject *object)
|
||||
|
||||
g_free (display_x11->startup_notification_id);
|
||||
|
||||
/* X ID hashtable */
|
||||
g_hash_table_destroy (display_x11->xid_ht);
|
||||
|
||||
XCloseDisplay (display_x11->xdisplay);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
|
||||
Reference in New Issue
Block a user