[telepathy-mission-control/master] In regression tests, don't leak a DBusMessage when poking system flags

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Jun 23 09:32:36 PDT 2009


The check-combined target now has no leaks detected by valgrind,
when suppressions are used. Some tests still fail, since valgrind's
reduced performance exhibits race conditions better.
---
 test/twisted/mc-debug-server.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/twisted/mc-debug-server.c b/test/twisted/mc-debug-server.c
index fbf53e3..4457cd0 100644
--- a/test/twisted/mc-debug-server.c
+++ b/test/twisted/mc-debug-server.c
@@ -105,6 +105,8 @@ dbus_filter_function (DBusConnection *connection,
       if (reply == NULL || !dbus_connection_send (connection, reply, NULL))
         g_error ("Out of memory");
 
+      dbus_message_unref (reply);
+
       return DBUS_HANDLER_RESULT_HANDLED;
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list