[libdazzle] shortcuts: release return value GValue
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] shortcuts: release return value GValue
- Date: Thu, 26 Jul 2018 02:06:50 +0000 (UTC)
commit c61c06e9687d36f5f0871a7e6929541c013fbfc1
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 25 19:05:11 2018 -0700
shortcuts: release return value GValue
Make sure that we release the return value if there is any for the
call. In most cases there isn't.
src/shortcuts/dzl-shortcut-closure-chain.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/shortcuts/dzl-shortcut-closure-chain.c b/src/shortcuts/dzl-shortcut-closure-chain.c
index a16b8ee..2db9572 100644
--- a/src/shortcuts/dzl-shortcut-closure-chain.c
+++ b/src/shortcuts/dzl-shortcut-closure-chain.c
@@ -358,6 +358,9 @@ signal_activate (DzlShortcutClosureChain *chain,
g_value_unset (¶ms[i]);
g_free (params);
+ if (query.return_type != G_TYPE_NONE)
+ g_value_unset (&return_value);
+
return GDK_EVENT_STOP;
parameter_mismatch:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]