summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-06 19:28:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-06 19:28:47 +0000
commit65a53b8ae95bf7adb160b4e7cb10efc342fa75d0 (patch)
tree4c3f45764730f25010c7715e701f1c79c1120588 /protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp
parent90fc3521557ae33352dcc7baa87828b6bb0ca2b9 (diff)
proper cleanup for wassup
git-svn-id: http://svn.miranda-ng.org/main/trunk@5605 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp
index 49f02697c7..343f7bd1f5 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp
+++ b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp
@@ -542,8 +542,8 @@ void WAConnection::setLogin(WALogin* login) {
this->jid = this->login->user + "@" + this->login->domain;
this->fromm = this->login->user + "@" + this->login->domain + "/" + this->login->resource;
- this->in = login->inn;
- this->out = login->out;
+ this->in = login->getTreeNodeReader();
+ this->out = login->getTreeNodeWriter();
}
WALogin* WAConnection::getLogin() {
@@ -635,10 +635,10 @@ void WAConnection::sendMessage(FMessage* message) throw(WAException) {
WAConnection::~WAConnection() {
- if (this->inputKey != NULL)
- delete this->inputKey;
- if (this->outputKey != NULL)
- delete this->outputKey;
+ delete this->inputKey;
+ delete this->outputKey;
+ delete this->in;
+ delete this->out;
std::map<string, IqResultHandler*>::iterator it;
for (it = this->pending_server_requests.begin(); it != this->pending_server_requests.end(); it++) {
delete it->second;