mir: clear screen, keymap and event source when disposing dpy

This commit is contained in:
Marco Trevisan (Treviño) 2014-11-27 19:25:55 +01:00
parent 059fc5d3d9
commit b8925253b6

View File

@ -160,8 +160,9 @@ gdk_mir_display_dispose (GObject *object)
{
GdkMirDisplay *display = GDK_MIR_DISPLAY (object);
g_object_unref (display->screen);
display->screen = NULL;
g_clear_object (&display->screen);
g_clear_object (&display->keymap);
g_clear_pointer (&display->event_source, g_source_unref);
G_OBJECT_CLASS (gdk_mir_display_parent_class)->dispose (object);
}