mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix an incorrect delete call when out of memory.
This commit is contained in:
@@ -279,7 +279,7 @@ QuadIndices::QuadIndices(size_t size)
|
|||||||
}
|
}
|
||||||
catch (std::bad_alloc &)
|
catch (std::bad_alloc &)
|
||||||
{
|
{
|
||||||
delete[] newbuffer;
|
delete newbuffer;
|
||||||
delete[] newindices;
|
delete[] newindices;
|
||||||
throw love::Exception("Out of memory.");
|
throw love::Exception("Out of memory.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user