diff options
Diffstat (limited to 'libmm-glib/mm-location-gps-raw.c')
-rw-r--r-- | libmm-glib/mm-location-gps-raw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmm-glib/mm-location-gps-raw.c b/libmm-glib/mm-location-gps-raw.c index fddc5629..d776d1ca 100644 --- a/libmm-glib/mm-location-gps-raw.c +++ b/libmm-glib/mm-location-gps-raw.c @@ -190,7 +190,7 @@ gboolean mm_location_gps_raw_add_trace (MMLocationGpsRaw *self, const gchar *trace) { - GMatchInfo *match_info = NULL; + g_autoptr(GMatchInfo) match_info = NULL; /* Current implementation works only with $GPGGA and $GNGGA traces */ do { @@ -268,8 +268,6 @@ mm_location_gps_raw_add_trace (MMLocationGpsRaw *self, mm_get_double_from_match_info (match_info, 9, &self->priv->altitude); } - g_match_info_free (match_info); - return TRUE; } |