[gtk+] application-dbus: free strings during finalization



commit 90b78f89d3f02b5d75d9403c59e98b45458fdeb5
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Mar 30 11:57:23 2014 +0200

    application-dbus: free strings during finalization

 gtk/gtkapplication-dbus.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c
index 9fb79f4..cd145d2 100644
--- a/gtk/gtkapplication-dbus.c
+++ b/gtk/gtkapplication-dbus.c
@@ -419,7 +419,11 @@ gtk_application_impl_dbus_init (GtkApplicationImplDBus *dbus)
 static void
 gtk_application_impl_dbus_finalize (GObject *object)
 {
-  //GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) object;
+  GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) object;
+
+  g_free (dbus->app_menu_path);
+  g_free (dbus->menubar_path);
+  g_free (dbus->app_id);
 
   G_OBJECT_CLASS (gtk_application_impl_dbus_parent_class)->finalize (object);
 }


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