diff options
author | Ben Chan <benchan@chromium.org> | 2017-10-06 21:09:43 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-10-07 10:02:35 +0200 |
commit | bee3f063b44ef4e1476663a30ec673d69b47a442 (patch) | |
tree | 796ef8200c45d9e561f86ade9c0acd7581458ab0 | |
parent | 1e4769257368c681cea6e109a18ed9ff113b2b57 (diff) |
anydata: remove unused 'port' field in DetailedRegistrationStateContext
The 'port' field in DetailedRegistrationStateContext is initialized to
NULL but never updated or used.
When detailed_registration_state_context_complete_and_free() calls
g_object_unref() on the NULL 'port' field, an assertion is raised.
-rw-r--r-- | plugins/anydata/mm-broadband-modem-anydata.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/anydata/mm-broadband-modem-anydata.c b/plugins/anydata/mm-broadband-modem-anydata.c index 4a1da0f9..4b579da1 100644 --- a/plugins/anydata/mm-broadband-modem-anydata.c +++ b/plugins/anydata/mm-broadband-modem-anydata.c @@ -50,7 +50,6 @@ typedef struct { typedef struct { MMBroadbandModem *self; GSimpleAsyncResult *result; - MMPortSerialAt *port; MMModemCdmaRegistrationState cdma1x_state; MMModemCdmaRegistrationState evdo_state; GError *error; @@ -71,7 +70,6 @@ detailed_registration_state_context_complete_and_free (DetailedRegistrationState } g_simple_async_result_complete (ctx->result); - g_object_unref (ctx->port); g_object_unref (ctx->result); g_object_unref (ctx->self); g_free (ctx); |