diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-04 17:22:45 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-04 17:22:45 +0200 |
commit | d2b4ab9d9c24dfd97ad842b35a2bbd41e6110e00 (patch) | |
tree | 4729f090ba5ede4bacc35f305c0543f48e244f1d | |
parent | a62624aa2293a480e42d49856d131cb2c35b2f27 (diff) |
sierra: 'data' may be NULL if the parent dialling fails
-rw-r--r-- | plugins/sierra/mm-broadband-bearer-sierra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sierra/mm-broadband-bearer-sierra.c b/plugins/sierra/mm-broadband-bearer-sierra.c index 7a07b609..019fcbba 100644 --- a/plugins/sierra/mm-broadband-bearer-sierra.c +++ b/plugins/sierra/mm-broadband-bearer-sierra.c @@ -62,7 +62,8 @@ dial_3gpp_context_complete_and_free (Dial3gppContext *ctx) g_simple_async_result_complete_in_idle (ctx->result); g_object_unref (ctx->cancellable); g_object_unref (ctx->result); - g_object_unref (ctx->data); + if (ctx->data) + g_object_unref (ctx->data); g_object_unref (ctx->primary); g_object_unref (ctx->modem); g_object_unref (ctx->self); |