[libdazzle/libdazzle-3-28] shortcuts: handle transfer changes in theme loading



commit 56f48a148daf3aa8d3fc7af009a4175e3b93e497
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 9 20:35:11 2018 -0700

    shortcuts: handle transfer changes in theme loading

 src/shortcuts/dzl-shortcut-theme-load.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/shortcuts/dzl-shortcut-theme-load.c b/src/shortcuts/dzl-shortcut-theme-load.c
index 5ad6431..25f4c3e 100644
--- a/src/shortcuts/dzl-shortcut-theme-load.c
+++ b/src/shortcuts/dzl-shortcut-theme-load.c
@@ -315,7 +315,7 @@ load_state_add_signal (LoadState *state)
   LoadStateFrame *signal;
   LoadStateFrame *shortcut;
   LoadStateFrame *context;
-  GArray *values;
+  g_autoptr(GArray) values = NULL;
 
   g_assert (state->stack != NULL);
   g_assert (state->stack->type == LOAD_STATE_SIGNAL);
@@ -334,6 +334,7 @@ load_state_add_signal (LoadState *state)
   g_assert (context->type == LOAD_STATE_CONTEXT);
 
   values = g_array_sized_new (FALSE, FALSE, sizeof (GValue), g_slist_length (signal->params));
+  g_array_set_clear_func (values, (GDestroyNotify)g_value_unset);
 
   for (const GSList *iter = signal->params; iter != NULL; iter = iter->next)
     {


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