Commit 96bb2acf authored by Christian Kellner's avatar Christian Kellner
Browse files

device: properly remove weak pointer in finalize

Reported-by: default avatarBenjamin Berg <>
parent d29b07a1
......@@ -121,6 +121,13 @@ bolt_device_finalize (GObject *object)
g_free (dev->parent);
g_free (dev->syspath);
if (dev->mgr)
g_object_remove_weak_pointer (G_OBJECT (dev->mgr),
(gpointer *) &dev->mgr);
dev->mgr = NULL;
G_OBJECT_CLASS (bolt_device_parent_class)->finalize (object);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment