summaryrefslogtreecommitdiffstats
path: root/src/agent.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 13:45:00 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 13:45:00 +0200
commitd2244495dfc50c22ce275f6194c19d3293de70cb (patch)
tree6c476147947b1be0eb3b5e02eb027fde533c868b /src/agent.c
parent4d80133a45dd1d405dd8a23afdfae82690d30fe6 (diff)
Fix dbus_connection_ref/unref usage
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index 8784db3f..ae0d958e 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -782,6 +782,7 @@ gboolean agent_is_busy(struct agent *agent, void *user_data)
void agent_exit(void)
{
dbus_connection_unref(connection);
+ connection = NULL;
}
void agent_init(void)