[gnome-builder] source-view: free signals array after use



commit 9097c1a49adc0b8f6f625ebb8aaa7ddf5446b611
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 1 22:13:29 2016 -0700

    source-view: free signals array after use
    
    We take ownership of the result here, so we need to free it when we are
    done with it.

 libide/sourceview/ide-source-view-mode.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libide/sourceview/ide-source-view-mode.c b/libide/sourceview/ide-source-view-mode.c
index 313bb47..f1dabce 100644
--- a/libide/sourceview/ide-source-view-mode.c
+++ b/libide/sourceview/ide-source-view-mode.c
@@ -189,6 +189,7 @@ proxy_all_action_signals (GType type)
   GSignalQuery query;
 
   signals = g_signal_list_ids (type, &n_signals);
+
   for (i = 0; i < n_signals; i++)
     {
       g_signal_query (signals[i], &query);
@@ -207,6 +208,8 @@ proxy_all_action_signals (GType type)
                          (GType *)query.param_types);
         }
     }
+
+  g_free (signals);
 }
 
 const gchar *


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