From 94d46a43877107f9b558946a2f5dff0d95f02ca5 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 30 Mar 2012 13:11:41 +0200 Subject: plugin-base: plug memleak --- src/mm-plugin-base.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index 9fe3d6b9..50f8c919 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -724,10 +724,11 @@ supports_port (MMPlugin *plugin, (GAsyncReadyCallback)port_probe_run_ready, ctx); - /* Keep track of the probe */ + /* Keep track of the probe. Note that we got a new reference already + * from the cache. */ g_hash_table_insert (priv->tasks, g_strdup (key), - g_object_ref (probe)); + probe); out: if (port) -- cgit v1.2.3-70-g09d2