diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-21 18:35:23 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-27 15:40:40 +0000 |
commit | 55ded353d5e5e26b66d21898dcecd12311dea04b (patch) | |
tree | 2b8c83e7e8577ef51b8487750d219edd5bbccd4d | |
parent | bdec147dee4ca3cf9fefdfc9fab967f0d0e81f1d (diff) |
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.)
-rw-r--r-- | tests/twisted/mc-debug-server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/twisted/mc-debug-server.c b/tests/twisted/mc-debug-server.c index 5364dc9f..8497c02c 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; } |