GdkScreenX11: Dispose visuals

If we let them hold onto their X resources until finalize,
it is too late.
This commit is contained in:
Matthias Clasen 2013-06-29 19:23:23 -04:00
parent 42e45f4f75
commit dfa2e91cd7

View File

@ -149,6 +149,9 @@ gdk_x11_screen_dispose (GObject *object)
if (x11_screen->root_window)
_gdk_window_destroy (x11_screen->root_window, TRUE);
for (i = 0; i < x11_screen->nvisuals; i++)
g_object_run_dispose (G_OBJECT (x11_screen->visuals[i]));
G_OBJECT_CLASS (gdk_x11_screen_parent_class)->dispose (object);
x11_screen->xdisplay = NULL;