aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmm-glib/mm-modem-3gpp-profile-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmm-glib/mm-modem-3gpp-profile-manager.c b/libmm-glib/mm-modem-3gpp-profile-manager.c
index 67ae2928..29cf1cfe 100644
--- a/libmm-glib/mm-modem-3gpp-profile-manager.c
+++ b/libmm-glib/mm-modem-3gpp-profile-manager.c
@@ -154,7 +154,7 @@ build_list_results (GVariant *dictionaries,
n = g_variant_iter_n_children (&iter);
if (n > 0) {
- g_autoptr(GVariant) dictionary = NULL;
+ GVariant* dictionary = NULL;
while ((dictionary = g_variant_iter_next_value (&iter))) {
MM3gppProfile *profile = NULL;
@@ -167,6 +167,7 @@ build_list_results (GVariant *dictionaries,
saved_error = g_steal_pointer (&inner_error);
} else
profiles = g_list_append (profiles, profile);
+ g_variant_unref (dictionary);
}
}