aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-03-08 12:53:44 +0000
committerVincent Richard <[email protected]>2014-03-08 12:53:44 +0000
commitb65d748ff341ef3ed5a44a5dc5a28b68a059c384 (patch)
treec82c869e515ea1e264ad2e84b1077bc020fa76da
parentRetry reading from the stream instead of waiting for input data on socket. (diff)
downloadvmime-b65d748ff341ef3ed5a44a5dc5a28b68a059c384.tar.gz
vmime-b65d748ff341ef3ed5a44a5dc5a28b68a059c384.zip
Fixed memory leak.
-rw-r--r--src/vmime/net/imap/IMAPParser.hpp10
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;