aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-05-23 14:14:27 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-05-26 13:14:52 +0000
commit5b3709e61ed12cef6763b87f1eed4936dee89931 (patch)
tree5772e3ab6b20fadbc5ca5ac009ee766dc069ccdd /src
parent84aa134ad9c94ed42cdc1f8387e8fbf227ee4103 (diff)
iface-modem-3gpp: use g_autoptr() for the MMBearerProperties during sync
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-3gpp.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c
index 0cc45c7f..2a063996 100644
--- a/src/mm-iface-modem-3gpp.c
+++ b/src/mm-iface-modem-3gpp.c
@@ -2530,20 +2530,18 @@ sync_eps_bearer_ready (MMIfaceModem3gpp *self,
GAsyncResult *res,
GTask *task)
{
- MMBearerProperties *properties;
- SyncingContext *ctx;
- g_autoptr (GError) error = NULL;
+ SyncingContext *ctx;
+ g_autoptr(MMBearerProperties) properties = NULL;
+ g_autoptr(GError) error = NULL;
mm_obj_dbg (self, "EPS bearer sync ready");
ctx = g_task_get_task_data (task);
properties = MM_IFACE_MODEM_3GPP_GET_INTERFACE (self)->load_initial_eps_bearer_finish (self, res, &error);
- if (!properties) {
- mm_obj_dbg (self, "couldn't refresh EPS bearer properties: %s", error->message);
- } else {
+ if (!properties)
+ mm_obj_dbg (self, "couldn't refresh initial EPS bearer status: %s", error->message);
+ else
mm_iface_modem_3gpp_update_initial_eps_bearer (self, properties);
- g_object_unref (properties);
- }
/* Go on to next step */
ctx->step++;