[telepathy-mission-control/master] McdDispatcher: don't leak one ref to the dispatcher per Connection monitored

Simon McVittie simon.mcvittie at collabora.co.uk
Thu May 28 03:23:59 PDT 2009


This is not a concern "in real life", only when running MC under
valgrind/refdbg.
---
 src/mcd-dispatcher.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 9755fe4..d9d9cf2 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -3637,6 +3637,7 @@ mcd_dispatcher_lost_connection (gpointer data,
     DEBUG ("%p: %p", self, corpse);
 
     g_hash_table_remove (self->priv->connections, corpse);
+    g_object_unref (self);
 }
 
 void
-- 
1.5.6.5




More information about the telepathy-commits mailing list