[Telepathy-commits] [telepathy-qt4/master] Channel: Fixed memory leaks.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Mon Feb 9 09:07:09 PST 2009
---
TelepathyQt4/Client/channel.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index cf52686..4cd7d0a 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -66,6 +66,7 @@ namespace Client
struct Channel::Private
{
Private(Channel *parent, Connection *connection);
+ ~Private();
void introspectMain();
void introspectMainFallbackChannelType();
@@ -237,6 +238,14 @@ Channel::Private::Private(Channel *parent, Connection *connection)
}
}
+Channel::Private::~Private()
+{
+ delete currentGroupMembersChangedInfo;
+ foreach (GroupMembersChangedInfo *info, groupMembersChangedQueue) {
+ delete info;
+ }
+}
+
void Channel::Private::introspectMain()
{
if (!properties) {
--
1.5.6.5
More information about the telepathy-commits
mailing list