aboutsummaryrefslogtreecommitdiff
path: root/src/idoactionhelper.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-08-13 15:28:16 -0500
committerTed Gould <ted@gould.cx>2013-08-13 15:28:16 -0500
commitbb86413dd05a38b4879a109fbb52563a56e6ae5f (patch)
treefd29a66a62d3656dd90c83727f87782e4ffcb104 /src/idoactionhelper.c
parentf19d539fa7b63a4856dcbbe083f28ccdbfc5b58f (diff)
downloadayatana-ido-bb86413dd05a38b4879a109fbb52563a56e6ae5f.tar.gz
ayatana-ido-bb86413dd05a38b4879a109fbb52563a56e6ae5f.tar.bz2
ayatana-ido-bb86413dd05a38b4879a109fbb52563a56e6ae5f.zip
Library functions taking GVariant params need to ref_sink() and unref() always. (reason #24 to not like GVariant)
Diffstat (limited to 'src/idoactionhelper.c')
-rw-r--r--src/idoactionhelper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idoactionhelper.c b/src/idoactionhelper.c
index 8ce5691..a4eb51d 100644
--- a/src/idoactionhelper.c
+++ b/src/idoactionhelper.c
@@ -418,8 +418,12 @@ ido_action_helper_activate_with_parameter (IdoActionHelper *helper,
g_return_if_fail (IDO_IS_ACTION_HELPER (helper));
g_return_if_fail (parameter != NULL);
+ g_variant_ref_sink (parameter);
+
if (helper->actions && helper->action_name)
g_action_group_activate_action (helper->actions, helper->action_name, parameter);
+
+ g_variant_unref (parameter);
}
/**