From ce801641a789ba634f8306ef429d0c65418f9aa0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 24 Jul 2017 13:24:33 -0400 Subject: [PATCH] Avoid the use of g_autofree We can't use this in code that may be built on win32, so lets just not use it at all. --- gtk/gtkfilechoosernativeportal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c index 6f686e434c..b6fa011b53 100644 --- a/gtk/gtkfilechoosernativeportal.c +++ b/gtk/gtkfilechoosernativeportal.c @@ -180,7 +180,7 @@ open_file_msg_cb (GObject *source_object, GtkFileChooserNative *self = data->self; GDBusMessage *reply; GError *error = NULL; - g_autofree char *handle = NULL; + char *handle = NULL; reply = g_dbus_connection_send_message_with_reply_finish (data->connection, res, &error); @@ -227,6 +227,7 @@ open_file_msg_cb (GObject *source_object, } g_object_unref (reply); + g_free (handle); } static GVariant *