summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-29 21:36:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-29 21:36:42 +0000
commitbd33df2d4b9534d2241283f2b20d83f5b1811ebc (patch)
tree3feb09d69f76d9a8af368a62b554de9b868e4647 /protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp
parent7442e2473e41113ca0fbb40c7816267b3e5cbd16 (diff)
media files detection
git-svn-id: http://svn.miranda-ng.org/main/trunk@11954 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp b/protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp
index e3c3367b04..d5b5189b44 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp
+++ b/protocols/WhatsApp/src/WhatsAPI++/FMessage.cpp
@@ -18,9 +18,8 @@ FMessage::FMessage() :
this->latitude = 0;
this->media_duration_seconds = 0;
this->media_size = 0;
- this->media_name = "";
- this->media_url = "";
- this->data = "";
+ this->bindata = 0;
+ this->bindata_len = 0;
}
FMessage::FMessage(const std::string &remote_jid, bool from_me, const std::string &id) :
@@ -32,8 +31,8 @@ FMessage::FMessage(const std::string &remote_jid, bool from_me, const std::strin
this->latitude = 0;
this->media_duration_seconds = 0;
this->media_size = 0;
- this->media_name = "";
- this->media_url = "";
+ this->bindata = 0;
+ this->bindata_len = 0;
}
std::string FMessage::getMessage_WA_Type_StrValue(unsigned char type)
@@ -60,6 +59,8 @@ std::string FMessage::getMessage_WA_Type_StrValue(unsigned char type)
FMessage::~FMessage()
{
+ if (this->bindata != NULL)
+ free(this->bindata);
}
Key::Key(const std::string& remote_jid, bool from_me, const std::string& id)