Fix an incorrect delete call when out of memory.

This commit is contained in:
Alex Szpakowski
2016-10-22 21:32:44 -03:00
parent a9593d926e
commit 894a44f45c
+1 -1
View File
@@ -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.");
}