[telepathy-qt4/master] TextChannel: Make sure we won't leak if the channel is deleted and the message queue is not empty.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Mon Nov 2 07:50:30 PST 2009
---
TelepathyQt4/text-channel.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/text-channel.cpp b/TelepathyQt4/text-channel.cpp
index adf482c..135af23 100644
--- a/TelepathyQt4/text-channel.cpp
+++ b/TelepathyQt4/text-channel.cpp
@@ -188,6 +188,9 @@ TextChannel::Private::Private(TextChannel *parent)
TextChannel::Private::~Private()
{
+ foreach (MessageEvent *e, incompleteMessages) {
+ delete e;
+ }
}
void TextChannel::Private::introspectMessageQueue(
--
1.5.6.5
More information about the telepathy-commits
mailing list