Преглед на файлове

Fixed memory leak in CAnimation (regression of #376)

AlexVinS преди 8 години
родител
ревизия
654fea56a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      client/gui/CAnimation.cpp

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