plugin-base: plug memleak
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user