1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fixed memory leak in CAnimation (regression of #376)

This commit is contained in:
AlexVinS
2017-11-04 06:03:20 +03:00
parent 8f42cdea67
commit 654fea56a4

View File

@@ -1555,6 +1555,8 @@ CAnimation::~CAnimation()
for (auto & _image : elem.second)
delete _image.second;
}
if(defFile)
delete defFile;
}
void CAnimation::duplicateImage(const size_t sourceGroup, const size_t sourceFrame, const size_t targetGroup)