From 0368adade1489f8611356252ddedbfd80a816e41 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 17 Oct 2018 20:26:44 +0200 Subject: [PATCH] #206 Initialize and delete pointers --- src/vmime/net/imap/IMAPParser.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/vmime/net/imap/IMAPParser.hpp b/src/vmime/net/imap/IMAPParser.hpp index 74b5145f..186ac23f 100644 --- a/src/vmime/net/imap/IMAPParser.hpp +++ b/src/vmime/net/imap/IMAPParser.hpp @@ -4586,7 +4586,11 @@ public: m_atom(NULL), m_flag_list(NULL), m_text(NULL), - m_capability_data(NULL) { + m_mod_sequence_value(NULL), + m_sequence_set(NULL), + m_capability_data(NULL), + m_uid_set(NULL), + m_uid_set2(NULL) { } @@ -4596,7 +4600,11 @@ public: delete m_atom; delete m_flag_list; delete m_text; + delete m_mod_sequence_value; + delete m_sequence_set; delete m_capability_data; + delete m_uid_set; + delete m_uid_set2; } bool parseImpl(IMAPParser& parser, string& line, size_t* currentPos) {