diff options
author | Daniele Palmas <dnlplm@gmail.com> | 2021-09-29 16:13:45 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-29 22:24:05 +0200 |
commit | 843c2063142e6935756c59586500fb5ca2cd7b28 (patch) | |
tree | f627a0f4a5e5feb0a72a932023836d26e3a2a2f6 | |
parent | f563f87f9ca73f08c17b82b7e1ad70f6b44b92bd (diff) |
telit: fix g_object_unref failed assertion
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
(cherry picked from commit 9c47c54f067f15afea7ff1e9c89d1ab41fe3e4bb)
-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 daa7bddd..35b7d7d3 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); } |