Pārlūkot izejas kodu

Fixed a memory leak.

Alex Szpakowski 9 gadi atpakaļ
vecāks
revīzija
dad93959f9
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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;
 	}
 }