瀏覽代碼

Fixed CID 1366281, CID 1366282, CID 1366283, CID 1366284

AlexVinS 9 年之前
父節點
當前提交
f50fd6d8db
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 8 0
      client/Graphics.cpp
  2. 1 0
      client/Graphics.h

+ 8 - 0
client/Graphics.cpp

@@ -149,6 +149,14 @@ Graphics::Graphics()
 	//(!) do not load any CAnimation here
 }
 
+Graphics::~Graphics()
+{
+	delete[] playerColors;
+	delete neutralColor;
+	delete[] playerColorPalette;
+	delete[] neutralColorPalette;
+}
+
 void Graphics::load()
 {
 	heroMoveArrows = std::make_shared<CAnimation>("ADAG");

+ 1 - 0
client/Graphics.h

@@ -90,6 +90,7 @@ public:
 
 	//functions
 	Graphics();
+	~Graphics();
 
 	void load();