clutter/backend: Clear stage window pointer after removing weak ref

Otherwise when dispose() is called multiple times we spew warnings on
tear down.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1670>
This commit is contained in:
Jonas Ådahl 2021-01-14 16:06:07 +01:00
parent 912ad90573
commit 50607523bc

View File

@ -98,6 +98,7 @@ clutter_backend_dispose (GObject *gobject)
{
g_object_remove_weak_pointer (G_OBJECT (backend->stage_window),
(gpointer *) &backend->stage_window);
backend->stage_window = NULL;
}
G_OBJECT_CLASS (clutter_backend_parent_class)->dispose (gobject);