summaryrefslogtreecommitdiff
path: root/src/being/castingeffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-02 19:46:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-02 19:46:50 +0300
commit7a56bfad4c7297863c717a7ca8c8cf42c712a220 (patch)
treee423f87e4518058a2ffefad6871402ab1c5f6d9c /src/being/castingeffect.cpp
parentaee8a3298bc621ff1c7e3a655ecc38ad0b4087cb (diff)
downloadplus-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.gz
plus-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.bz2
plus-7a56bfad4c7297863c717a7ca8c8cf42c712a220.tar.xz
plus-7a56bfad4c7297863c717a7ca8c8cf42c712a220.zip
Fix memory leak in casting animations.
Diffstat (limited to 'src/being/castingeffect.cpp')
-rw-r--r--src/being/castingeffect.cpp2
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,