[gnome-builder/wip/chergert/perspective] workbench: free allocated strings



commit 2d2cea31da144891bccb51851082d9e28d11268d
Author: Christian Hergert <chergert redhat com>
Date:   Fri Nov 6 14:38:18 2015 -0800

    workbench: free allocated strings

 libide/ide-workbench.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-workbench.c b/libide/ide-workbench.c
index d5b2d2a..b0439c4 100644
--- a/libide/ide-workbench.c
+++ b/libide/ide-workbench.c
@@ -337,9 +337,9 @@ void
 ide_workbench_add_perspective (IdeWorkbench   *self,
                                IdePerspective *perspective)
 {
-  const gchar *id;
-  const gchar *title;
-  const gchar *icon_name;
+  g_autofree gchar *icon_name = NULL;
+  g_autofree gchar *id = NULL;
+  g_autofree gchar *title = NULL;
   GtkStack *stack;
   GtkWidget *titlebar;
 


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