summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-30 13:11:41 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-30 13:47:00 +0200
commit94d46a43877107f9b558946a2f5dff0d95f02ca5 (patch)
tree14dd615322a7fb255340918aba5e90023e7ae0d0
parent7518772d4bcb5f6a2c5d4fcf33346e1036625755 (diff)
downloadModemManager-94d46a43877107f9b558946a2f5dff0d95f02ca5.tar.gz
plugin-base: plug memleak
-rw-r--r--src/mm-plugin-base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c
index 9fe3d6b94..50f8c9196 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)