mnemonics: fix misc STL containers leak

found by coverity
This commit is contained in:
moneromooo-monero 2016-12-10 12:39:25 +00:00
parent f6fcf0ef26
commit 19585d4914
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ namespace Language
trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
unique_prefix_length = 4;
}
virtual ~Base()
{
delete word_list;
delete word_map;
delete trimmed_word_map;
}
/*!
* \brief Returns a pointer to the word list.
* \return A pointer to the word list.