mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
x11/backend-x11: Close the X11 Display where it's created
We open the clutter backend display inside MetaBackendX11, but we end up closing it MetaClutterBackendX11, that is not it's direct owner. So do it where it belongs Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3020>
This commit is contained in:
parent
889cd056e7
commit
f013764b57
@ -942,6 +942,8 @@ meta_backend_x11_dispose (GObject *object)
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (meta_backend_x11_parent_class)->dispose (object);
|
||||
|
||||
g_clear_pointer (&priv->xdisplay, XCloseDisplay);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -153,8 +153,6 @@ meta_clutter_backend_x11_finalize (GObject *gobject)
|
||||
cogl_xlib_filter,
|
||||
clutter_backend_x11);
|
||||
|
||||
XCloseDisplay (clutter_backend_x11->xdisplay);
|
||||
|
||||
G_OBJECT_CLASS (meta_clutter_backend_x11_parent_class)->finalize (gobject);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user