From 1b1f74a3c56ae7e0dddd2ea33c3276987511774c Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Wed, 2 Nov 2022 16:58:15 +0100 Subject: ContextManager: Fix filtering unavailable contexts - Unref the actual context, not the list - Free the list element --- libgupnp/gupnp-context-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c index b4ac4d9..5d19597 100644 --- a/libgupnp/gupnp-context-manager.c +++ b/libgupnp/gupnp-context-manager.c @@ -208,7 +208,8 @@ on_context_unavailable (GUPnPContextManager *manager, g_signal_stop_emission_by_name (manager, "context-unavailable"); priv->filtered = g_list_remove_link (priv->filtered, ctx); - g_object_unref (ctx); + g_object_unref (ctx->data); + g_list_free (ctx); } g_hash_table_remove (priv->contexts, context); -- cgit v1.2.1