summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-11-02 07:49:53 +0100
committerJens Georg <mail@jensge.org>2022-11-02 07:49:53 +0100
commit1fed6f76524c7fe0b5d65579a1e2d0ebfa1a3f5c (patch)
tree83709ee08512ed91e72444482d8ecbca9cce0321
parent38497a4a80130ab1953367df536cf261dd4c4e94 (diff)
downloadgupnp-1fed6f76524c7fe0b5d65579a1e2d0ebfa1a3f5c.tar.gz
CM: Do not leak filtered contexts on shutdown
If we still have filtered contexts in shutdown, drop that reference as well
-rw-r--r--libgupnp/gupnp-context-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index 37591a3..b4ac4d9 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -479,7 +479,7 @@ gupnp_context_manager_dispose (GObject *object)
g_ptr_array_free (priv->control_points, TRUE);
g_ptr_array_free (priv->root_devices, TRUE);
- g_list_free (priv->filtered);
+ g_list_free_full (priv->filtered, g_object_unref);
priv->filtered = NULL;
g_clear_object (&filter);