From 40e9434cc36174506ed9bbd01c8f78eaea673a2f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 15 Jan 2020 18:56:01 +0100 Subject: [PATCH] altair-lte: use autoptr support from glib --- plugins/altair/mm-modem-helpers-altair-lte.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c index 09c6f18f..7df77ce2 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) { - mm_autoptr(GRegex) r = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) r = NULL; + g_autoptr(GMatchInfo) match_info = NULL; gchar *ceer_response = NULL; @@ -111,8 +111,8 @@ mm_altair_parse_ceer_response (const gchar *response, guint mm_altair_parse_cid (const gchar *response, GError **error) { - mm_autoptr(GRegex) regex = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) regex = NULL; + g_autoptr(GMatchInfo) match_info = NULL; guint cid = -1; regex = g_regex_new ("\\%CGINFO:\\s*(\\d+)", G_REGEX_RAW, 0, 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) { - mm_autoptr(GRegex) regex = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) regex = NULL; + g_autoptr(GMatchInfo) match_info = NULL; MMPco *pco = NULL; gint num_matches;