Fixes memory leak
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b003e13f2c
commit
8f45ea905a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue