aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-19 10:41:09 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-19 16:22:32 +0200
commitc63f42a20cc26fb89bfbe5d14e9b2b4437f41102 (patch)
treebefe0158209cfdf5add1366e79a1aade3c28244f
parentb43ee56d067fae90809776b388a1fa335f508796 (diff)
hso: plug memleak when finishing dialling with error
-rw-r--r--plugins/option/mm-broadband-bearer-hso.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/option/mm-broadband-bearer-hso.c b/plugins/option/mm-broadband-bearer-hso.c
index d2cfd910..491b4659 100644
--- a/plugins/option/mm-broadband-bearer-hso.c
+++ b/plugins/option/mm-broadband-bearer-hso.c
@@ -464,8 +464,7 @@ activate_ready (MMBaseModem *modem,
if (!mm_base_modem_at_command_full_finish (modem, res, &error)) {
g_simple_async_result_take_error (ctx->result, error);
- g_simple_async_result_complete (ctx->result);
- g_object_unref (ctx->result);
+ dial_3gpp_context_complete_and_free (ctx);
return;
}