From ddb498e9d73f3cba46791983ecece2371796f29b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Jan 2015 14:07:23 +0000 Subject: more cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@11949 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp index cdd39a6509..035a3c9d39 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp @@ -20,6 +20,11 @@ BinTreeNodeWriter::BinTreeNodeWriter(WAConnection* conn, ISocketConnection* conn this->dataBegin = 0; } +BinTreeNodeWriter::~BinTreeNodeWriter() +{ + delete this->out; +} + void BinTreeNodeWriter::writeDummyHeader() { int num = 3; @@ -278,9 +283,3 @@ void BinTreeNodeWriter::write(const ProtocolTreeNode &node, bool needsFlush) } this->mutex->unlock(); } - -BinTreeNodeWriter::~BinTreeNodeWriter() -{ - if (this->out != NULL) - delete this->out; -} -- cgit v1.2.3