Browse Source

Fixed memory leak in CAnimation (regression of #376)

AlexVinS 8 năm trước cách đây
mục cha
commit
654fea56a4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)