From c30e6e17469019c58bde8497989f9d51630082eb Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 9 May 2020 14:46:27 +0200 Subject: qmicli,loc: avoid using g_autofree in 1.24 branch --- src/qmicli/qmicli-loc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qmicli/qmicli-loc.c b/src/qmicli/qmicli-loc.c index 149e70b..9dccb8a 100644 --- a/src/qmicli/qmicli-loc.c +++ b/src/qmicli/qmicli-loc.c @@ -489,10 +489,11 @@ position_report_received (QmiClientLoc *client, g_print (" time source: n/a\n"); if (qmi_indication_loc_position_report_output_get_sensor_data_usage (output, &sensor_data_usage, NULL)) { - g_autofree gchar *sensor_data_usage_str = NULL; + gchar *sensor_data_usage_str; sensor_data_usage_str = qmi_loc_sensor_data_usage_build_string_from_mask (sensor_data_usage); g_print (" sensor data usage: %s\n", sensor_data_usage_str); + g_free (sensor_data_usage_str); } else g_print (" sensor data usage: n/a\n"); -- cgit v1.2.3