Fixes memory leak
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-02-26 17:33:53 +01:00
parent b003e13f2c
commit 8f45ea905a
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ namespace CreatureLib::Library {
[[nodiscard]] inline const ArbUt::StringView& GetEffect() const noexcept { return _effect; }
[[nodiscard]] inline const ArbUt::List<EffectParameter*>& GetParameters() const noexcept { return _parameters; }
~Talent() noexcept {
for (auto p : _parameters) {
delete p;
}
}
private:
ArbUt::StringView _name;
ArbUt::StringView _effect;