forked from AuroraMiddleware/gtk
mir: clear screen, keymap and event source when disposing dpy
This commit is contained in:
parent
059fc5d3d9
commit
b8925253b6
@ -160,8 +160,9 @@ gdk_mir_display_dispose (GObject *object)
|
|||||||
{
|
{
|
||||||
GdkMirDisplay *display = GDK_MIR_DISPLAY (object);
|
GdkMirDisplay *display = GDK_MIR_DISPLAY (object);
|
||||||
|
|
||||||
g_object_unref (display->screen);
|
g_clear_object (&display->screen);
|
||||||
display->screen = NULL;
|
g_clear_object (&display->keymap);
|
||||||
|
g_clear_pointer (&display->event_source, g_source_unref);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gdk_mir_display_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gdk_mir_display_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user