aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-10-09 10:37:46 -0400
committerTed Gould <ted@gould.cx>2011-10-09 10:37:46 -0400
commite53d3bd87c6ab976c39e5e7839d424ebe0c2a315 (patch)
treef7e1e22a0682b1dcce3d36c2a058760316214f2a /src
parent749c8c0bdc194d438b6eea99dbedd0fd327c10da (diff)
downloadayatana-indicator-session-e53d3bd87c6ab976c39e5e7839d424ebe0c2a315.tar.gz
ayatana-indicator-session-e53d3bd87c6ab976c39e5e7839d424ebe0c2a315.tar.bz2
ayatana-indicator-session-e53d3bd87c6ab976c39e5e7839d424ebe0c2a315.zip
Make sure to reference the variant, and unref the value we get
Diffstat (limited to 'src')
-rw-r--r--src/apt-watcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c
index d8bb7e2..481029a 100644
--- a/src/apt-watcher.c
+++ b/src/apt-watcher.c
@@ -425,7 +425,7 @@ static void apt_watcher_signal_cb ( GDBusProxy* proxy,
g_return_if_fail (APT_IS_WATCHER (user_data));
AptWatcher* self = APT_WATCHER (user_data);
- g_variant_ref (parameters);
+ g_variant_ref_sink (parameters);
GVariant *value = g_variant_get_child_value (parameters, 0);
if (g_strcmp0(signal_name, "ActiveTransactionsChanged") == 0){
@@ -477,6 +477,7 @@ static void apt_watcher_signal_cb ( GDBusProxy* proxy,
}
}
+ g_variant_unref (value);
g_variant_unref (parameters);
}