[Pkg-telepathy-commits] [telepathy-mission-control-6] 46/90: mc-debug-server: hold a reference to the debug sender
Simon McVittie
smcv at debian.org
Wed May 14 12:09:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.
commit 55ded353d5e5e26b66d21898dcecd12311dea04b
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Mar 21 18:35:23 2014 +0000
mc-debug-server: hold a reference to the debug sender
It seems we were instantiating it once per debug message. Oops.
(The real Mission Control got this right, though.)
---
tests/twisted/mc-debug-server.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/twisted/mc-debug-server.c b/tests/twisted/mc-debug-server.c
index 5364dc9..8497c02 100644
--- a/tests/twisted/mc-debug-server.c
+++ b/tests/twisted/mc-debug-server.c
@@ -185,11 +185,14 @@ main (int argc, char **argv)
GMainLoop *teardown_loop;
guint linger_time = 5;
guint test_interface_id = 0;
+ TpDebugSender *debug_sender = NULL;
g_type_init ();
g_set_application_name ("Mission Control regression tests");
+ debug_sender = tp_debug_sender_dup ();
+
mcd_debug_init ();
tp_debug_set_flags (g_getenv ("MC_TP_DEBUG"));
@@ -259,6 +262,7 @@ main (int argc, char **argv)
tp_clear_object (&bus_daemon);
g_message ("Exiting with %d", ret);
+ tp_clear_object (&debug_sender);
return ret;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git
More information about the Pkg-telepathy-commits
mailing list