summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug-sender.c
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2011-09-07 16:39:27 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2011-09-07 16:39:27 +0100
commit0cb8c83e33f8addebd35c4890c0355fa9ccd0b2c (patch)
treee22fad2b9eee779a57cff3aa995e7573f007e2bd /telepathy-glib/debug-sender.c
parent305d4a705e1cc7855886b91c9fe2a3a820da0d25 (diff)
downloadtelepathy-glib-0cb8c83e33f8addebd35c4890c0355fa9ccd0b2c.tar.gz
Debug messages leaked if the debug message cache is disabled, ironically
Diffstat (limited to 'telepathy-glib/debug-sender.c')
-rw-r--r--telepathy-glib/debug-sender.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/telepathy-glib/debug-sender.c b/telepathy-glib/debug-sender.c
index ebbcfab2d..3540c68f5 100644
--- a/telepathy-glib/debug-sender.c
+++ b/telepathy-glib/debug-sender.c
@@ -373,6 +373,11 @@ _tp_debug_sender_take (TpDebugSender *self,
tp_svc_debug_emit_new_debug_message (self, new_msg->timestamp,
new_msg->domain, new_msg->level, new_msg->string);
}
+
+#ifndef ENABLE_DEBUG_CACHE
+ /* if there's cache, these are freed when they fall of its end instead */
+ debug_message_free (new_msg);
+#endif
}
/**