aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-02-20 09:59:20 +0100
committerAleksander Morgado <aleksander@lanedo.com>2013-02-20 09:59:20 +0100
commit2267fb04801074fe4dce715699b632499fbea918 (patch)
tree53987abc87c1f5f9bfc44917c6601b1e2e509153 /src
parentf27737e0317c16bf0e13b90d20b6eb670b2f44de (diff)
plugin: plug memleaks
Diffstat (limited to 'src')
-rw-r--r--src/mm-plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c
index b6889ef3..d07192a8 100644
--- a/src/mm-plugin.c
+++ b/src/mm-plugin.c
@@ -546,6 +546,7 @@ port_probe_run_ready (MMPortProbe *probe,
g_simple_async_result_set_op_res_gpointer (ctx->result,
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED),
NULL);
+ g_error_free (error);
}
/* Probing failed but the plugin tells us to retry; so we'll defer the
* probing a bit */
@@ -555,6 +556,7 @@ port_probe_run_ready (MMPortProbe *probe,
g_simple_async_result_set_op_res_gpointer (ctx->result,
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_DEFER),
NULL);
+ g_error_free (error);
}
/* For remaining errors, just propagate them */
else {