From 0d6e2dc9f57888e72ee3433e702e469c58022651 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Wed, 12 Dec 2018 16:58:46 -0800 Subject: [PATCH] altair-lte: use mm_autoptr instead of g_autoptr commit 397faef3c5ce ("mm-common-helpers: add mm_autoptr helpers for GRegex and GMatchInfo") introduces mm_autoptr(), which implements g_autoptr() that isn't available before glib 2.44. This patch fixes the code to consistently uses mm_autoptr(). --- plugins/altair/mm-modem-helpers-altair-lte.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c index bb247d75..09c6f18f 100644 --- a/plugins/altair/mm-modem-helpers-altair-lte.c +++ b/plugins/altair/mm-modem-helpers-altair-lte.c @@ -71,8 +71,8 @@ gchar * mm_altair_parse_ceer_response (const gchar *response, GError **error) { - g_autoptr(GRegex) r = NULL; - g_autoptr(GMatchInfo) match_info = NULL; + mm_autoptr(GRegex) r = NULL; + mm_autoptr(GMatchInfo) match_info = NULL; gchar *ceer_response = NULL; @@ -136,8 +136,8 @@ mm_altair_parse_cid (const gchar *response, GError **error) MMPco * mm_altair_parse_vendor_pco_info (const gchar *pco_info, GError **error) { - g_autoptr(GRegex) regex = NULL; - g_autoptr(GMatchInfo) match_info = NULL; + mm_autoptr(GRegex) regex = NULL; + mm_autoptr(GMatchInfo) match_info = NULL; MMPco *pco = NULL; gint num_matches;