[gnome-builder] c-indent: free temporary parameter string



commit 213987ac8687860413279cae3d8bfe8b51be0395
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 13 19:22:51 2016 -0700

    c-indent: free temporary parameter string

 plugins/c-pack/ide-c-indenter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/c-pack/ide-c-indenter.c b/plugins/c-pack/ide-c-indenter.c
index 94142bb..660225c 100644
--- a/plugins/c-pack/ide-c-indenter.c
+++ b/plugins/c-pack/ide-c-indenter.c
@@ -1079,7 +1079,7 @@ format_parameters (GtkTextIter *begin,
 
   for (iter = params; iter; iter = iter->next)
     {
-      gchar *param_str;
+      g_autofree gchar *param_str = NULL;
 
       if (iter != params)
         g_string_append (str, join_str);


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