瀏覽代碼

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)