summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgupnp/gupnp-context-manager.c3
1 files changed, 2 insertions, 1 deletions
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);