diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-02 19:46:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-02 19:46:50 +0300 |
commit | 7a56bfad4c7297863c717a7ca8c8cf42c712a220 (patch) | |
tree | e423f87e4518058a2ffefad6871402ab1c5f6d9c /src/being/castingeffect.cpp | |
parent | aee8a3298bc621ff1c7e3a655ecc38ad0b4087cb (diff) | |
download | manaverse-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.gz manaverse-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.bz2 manaverse-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.xz manaverse-7a56bfad4c7297863c717a7ca8c8cf42c712a220.zip |
Fix memory leak in casting animations.
Diffstat (limited to 'src/being/castingeffect.cpp')
-rw-r--r-- | src/being/castingeffect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being/castingeffect.cpp b/src/being/castingeffect.cpp index cd7bec82a..14b9051e7 100644 --- a/src/being/castingeffect.cpp +++ b/src/being/castingeffect.cpp @@ -31,6 +31,7 @@ #include "resources/sprite/animatedsprite.h" #include "utils/checkutils.h" +#include "utils/delete2.h" #include "debug.h" @@ -65,6 +66,7 @@ CastingEffect::CastingEffect(const int skillId, CastingEffect::~CastingEffect() { + delete2(mSprite); } void CastingEffect::draw(Graphics *const graphics, |