altair-lte: use autoptr support from glib

This commit is contained in:
Aleksander Morgado
2020-01-15 18:56:01 +01:00
parent f775721817
commit 40e9434cc3
+6 -6
View File
@@ -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;