summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-29 14:07:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-29 14:07:23 +0000
commitddb498e9d73f3cba46791983ecece2371796f29b (patch)
tree6946397e2d33c931a9b9844640b495fb0e529b90 /protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp
parentc4562ac53bba7b587af2fcb5eebd6051b11d1f04 (diff)
more cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@11949 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp11
1 files changed, 5 insertions, 6 deletions
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;
-}