diff options
author | Daniele Palmas <dnlplm@gmail.com> | 2021-09-29 16:13:45 +0200 |
---|---|---|
committer | Daniele Palmas <dnlplm@gmail.com> | 2021-09-29 16:13:45 +0200 |
commit | 9c47c54f067f15afea7ff1e9c89d1ab41fe3e4bb (patch) | |
tree | 2e2ea0e03a604e4cf28d82d70dc5b57183d8f3f2 | |
parent | 8755e85d13b1170882cd5108cf20a63d94573155 (diff) | |
download | ModemManager-master.tar.gz |
telit: fix g_object_unref failed assertionmaster
Fix the following g_object_unref failed assertion:
ModemManager[385967]: <debug> [1632924639.132023] [modem0/ttyUSB2/at] --> 'AT+CSIM=1<CR>'
ModemManager[385967]: <debug> [1632924639.144892] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'
ModemManager[385967]: <debug> [1632924639.145021] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)
(ModemManager:385967): GLib-GObject-CRITICAL **: 16:10:39.145: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
-rw-r--r-- | plugins/telit/mm-broadband-modem-telit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c index 35900c9f8..bd92d0761 100644 --- a/plugins/telit/mm-broadband-modem-telit.c +++ b/plugins/telit/mm-broadband-modem-telit.c @@ -723,7 +723,8 @@ static void load_unlock_retries_step (GTask *task); static void load_unlock_retries_context_free (LoadUnlockRetriesContext *ctx) { - g_object_unref (ctx->retries); + if (ctx->retries) + g_object_unref (ctx->retries); g_slice_free (LoadUnlockRetriesContext, ctx); } |