Mark destructors of several libraries as virtual.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-02 17:48:14 +01:00
parent f0c3f84a29
commit b98b470f0d
4 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ namespace CreatureLib::Library {
GrowthRateLibrary(size_t initialCapacity = 10)
: _growthRates(std::unordered_map<std::string, GrowthRate*>(initialCapacity)) {}
~GrowthRateLibrary() {
virtual ~GrowthRateLibrary() {
for (auto gr : _growthRates) {
delete gr.second;
}