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;
 	}
 }