Permalink
Browse files

#206 Initialize and delete pointers

  • Loading branch information...
vincent-richard committed Oct 17, 2018
1 parent df135b5 commit 0368adade1489f8611356252ddedbfd80a816e41
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/vmime/net/imap/IMAPParser.hpp
@@ -4586,7 +4586,11 @@ class VMIME_EXPORT IMAPParser : public object {
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 @@ class VMIME_EXPORT IMAPParser : public object {
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) {

0 comments on commit 0368ada

Please sign in to comment.