diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2021-01-14 16:06:07 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2021-01-19 20:29:36 +0100 |
commit | 50607523bca6ecbb97be41bc947f222cd51e9bd6 (patch) | |
tree | 666c2ca9e43a6cc81f34d5c017d2e1f8ed7f0839 | |
parent | 912ad905738266ceb0e416e4daf2b0fde357ec09 (diff) | |
download | mutter-50607523bca6ecbb97be41bc947f222cd51e9bd6.tar.gz |
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>
-rw-r--r-- | clutter/clutter/clutter-backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c index b67f6c3b8..47ea4c4e5 100644 --- a/clutter/clutter/clutter-backend.c +++ b/clutter/clutter/clutter-backend.c @@ -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); |