hso: plug memleak when finishing dialling with error

This commit is contained in:
Aleksander Morgado
2012-07-19 10:41:09 +02:00
parent b43ee56d06
commit c63f42a20c

View File

@@ -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;
}