diff options
author | Vincent Richard <[email protected]> | 2006-01-15 11:16:44 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-01-15 11:16:44 +0000 |
commit | 3a2ed837ff3ef4f554bc4e48a082b478ed26965f (patch) | |
tree | f9d63eef454733e7da83edd9f4fbaf78db859ce8 | |
parent | Implemented IMAP multi-fetching. (diff) | |
download | vmime-3a2ed837ff3ef4f554bc4e48a082b478ed26965f.tar.gz vmime-3a2ed837ff3ef4f554bc4e48a082b478ed26965f.zip |
Fixed memory leaks.
-rw-r--r-- | vmime/net/imap/IMAPParser.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vmime/net/imap/IMAPParser.hpp b/vmime/net/imap/IMAPParser.hpp index d71ecae6..67d919ec 100644 --- a/vmime/net/imap/IMAPParser.hpp +++ b/vmime/net/imap/IMAPParser.hpp @@ -3188,6 +3188,16 @@ public: { public: + media_message() + : m_media_subtype(NULL) + { + } + + ~media_message() + { + delete m_media_subtype; + } + void go(IMAPParser& parser, string& line, string::size_type* currentPos) { DEBUG_ENTER_COMPONENT("media_message"); @@ -4338,6 +4348,12 @@ public: { delete (*it); } + + for (std::vector <status_info*>::iterator it = m_status_info_list.begin() ; + it != m_status_info_list.end() ; ++it) + { + delete (*it); + } } void go(IMAPParser& parser, string& line, string::size_type* currentPos) |