[libdazzle] shortcuts: handle transfer changes in theme loading
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] shortcuts: handle transfer changes in theme loading
- Date: Tue, 10 Apr 2018 03:35:03 +0000 (UTC)
commit 9a15f5001a37048bd089564303d0cf63ebb99833
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]