2
0
Эх сурвалжийг харах

Fixed memory leak in CAnimation (regression of #376)

AlexVinS 8 жил өмнө
parent
commit
654fea56a4

+ 2 - 0
client/gui/CAnimation.cpp

@@ -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)