[glib] GApplication: don't leak 'hint' on remote Open



commit 0646e00e2522490b41f39fc25a4093bb61e8a4dc
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Apr 21 10:55:40 2013 -0400

    GApplication: don't leak 'hint' on remote Open
    
    We were using format string "s" to deconstruct the open hint into a
    'const gchar *' which, of course, we never freed.  Fix that.

 gio/gapplicationimpl-dbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index 68b0d28..8c742bf 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -185,7 +185,7 @@ g_application_impl_method_call (GDBusConnection       *connection,
       GFile **files;
       gint n, i;
 
-      g_variant_get (parameters, "(@ass a{sv})",
+      g_variant_get (parameters, "(@as&s a{sv})",
                      &array, &hint, &platform_data);
 
       n = g_variant_n_children (array);


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