From 50607523bca6ecbb97be41bc947f222cd51e9bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 14 Jan 2021 16:06:07 +0100 Subject: 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: --- clutter/clutter/clutter-backend.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.1