plugin-base: plug memleak

This commit is contained in:
Aleksander Morgado
2012-03-30 13:11:41 +02:00
parent 7518772d4b
commit 94d46a4387

View File

@@ -724,10 +724,11 @@ supports_port (MMPlugin *plugin,
(GAsyncReadyCallback)port_probe_run_ready, (GAsyncReadyCallback)port_probe_run_ready,
ctx); 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_hash_table_insert (priv->tasks,
g_strdup (key), g_strdup (key),
g_object_ref (probe)); probe);
out: out:
if (port) if (port)