瀏覽代碼

Fixed a memory leak.

Alex Szpakowski 9 年之前
父節點
當前提交
dad93959f9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/modules/graphics/opengl/GLBuffer.cpp

+ 3 - 0
src/modules/graphics/opengl/GLBuffer.cpp

@@ -329,6 +329,9 @@ QuadIndices::~QuadIndices()
 	{
 		delete indexBuffer;
 		indexBuffer = nullptr;
+
+		delete[] indices;
+		indices = nullptr;
 	}
 }