mnemonics: fix misc STL containers leak

found by coverity
pull/95/head
moneromooo-monero 8 years ago
parent f6fcf0ef26
commit 19585d4914
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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.

Loading…
Cancel
Save