From b65d748ff341ef3ed5a44a5dc5a28b68a059c384 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 8 Mar 2014 13:53:44 +0100 Subject: [PATCH] Fixed memory leak. --- src/vmime/net/imap/IMAPParser.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;