[gtk+] Avoid the use of g_autofree



commit ce801641a789ba634f8306ef429d0c65418f9aa0
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 24 13:24:33 2017 -0400

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index 6f686e4..b6fa011 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 *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]