aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-10-12 15:32:41 -0500
committerTed Gould <ted@gould.cx>2011-10-12 15:32:41 -0500
commit38140e864e1d23ba9fe6f90e931b47153d692c28 (patch)
treefd2b4299b4e75b2da416f9e0ca8aa1d0c185fc34 /src
parentabfab87c6dd0aa5e63b48a35a6bc7aada741f7d5 (diff)
parent2d4557d53cd268ec67b2f17f7636f27035c46d64 (diff)
downloadayatana-indicator-session-38140e864e1d23ba9fe6f90e931b47153d692c28.tar.gz
ayatana-indicator-session-38140e864e1d23ba9fe6f90e931b47153d692c28.tar.bz2
ayatana-indicator-session-38140e864e1d23ba9fe6f90e931b47153d692c28.zip
Fix variant handling
Diffstat (limited to 'src')
-rw-r--r--src/apt-transaction.c1
-rw-r--r--src/apt-watcher.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/apt-transaction.c b/src/apt-transaction.c
index 317d74a..2b3f5a4 100644
--- a/src/apt-transaction.c
+++ b/src/apt-transaction.c
@@ -232,7 +232,6 @@ apt_transaction_receive_signal (GDBusProxy * proxy,
0,
current_state);
}
- g_variant_unref (parameters);
}
static void
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);
}