Explorar o código

Fixed a memory leak.

Alex Szpakowski %!s(int64=9) %!d(string=hai) anos
pai
achega
dad93959f9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 	}
 }