Преглед на файлове

Fix an incorrect delete call when out of memory.

Alex Szpakowski преди 9 години
родител
ревизия
894a44f45c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/modules/graphics/opengl/GLBuffer.cpp

+ 1 - 1
src/modules/graphics/opengl/GLBuffer.cpp

@@ -279,7 +279,7 @@ QuadIndices::QuadIndices(size_t size)
 		}
 		catch (std::bad_alloc &)
 		{
-			delete[] newbuffer;
+			delete newbuffer;
 			delete[] newindices;
 			throw love::Exception("Out of memory.");
 		}