diff options
author | Vincent Richard <[email protected]> | 2014-03-08 12:53:44 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-03-08 12:53:44 +0000 |
commit | b65d748ff341ef3ed5a44a5dc5a28b68a059c384 (patch) | |
tree | c82c869e515ea1e264ad2e84b1077bc020fa76da | |
parent | Retry reading from the stream instead of waiting for input data on socket. (diff) | |
download | vmime-b65d748ff341ef3ed5a44a5dc5a28b68a059c384.tar.gz vmime-b65d748ff341ef3ed5a44a5dc5a28b68a059c384.zip |
Fixed memory leak.
-rw-r--r-- | src/vmime/net/imap/IMAPParser.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vmime/net/imap/IMAPParser.hpp b/src/vmime/net/imap/IMAPParser.hpp index d67d4727..88f63c64 100644 --- a/src/vmime/net/imap/IMAPParser.hpp +++ b/src/vmime/net/imap/IMAPParser.hpp @@ -2166,6 +2166,16 @@ public: DECLARE_COMPONENT(status_att_val) + status_att_val() + : m_value(NULL) + { + } + + ~status_att_val() + { + delete m_value; + } + bool parseImpl(IMAPParser& parser, string& line, size_t* currentPos) { size_t pos = *currentPos; |