Browse Source

Fix an incorrect delete call when out of memory.

Alex Szpakowski 8 years ago
parent
commit
894a44f45c
1 changed files with 1 additions and 1 deletions
  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.");
 		}