Fixed leak report.

This commit is contained in:
Branimir Karadžić 2015-08-10 20:15:10 -07:00
parent 780f2c614f
commit f166412693

View file

@ -2142,6 +2142,11 @@ again:
BX_TRACE("Shutdown complete.");
if (NULL != s_allocatorStub)
{
s_allocatorStub->checkLeaks();
}
if (NULL != s_callbackStub)
{
BX_DELETE(g_allocator, s_callbackStub);
@ -2150,8 +2155,6 @@ again:
if (NULL != s_allocatorStub)
{
s_allocatorStub->checkLeaks();
bx::CrtAllocator allocator;
BX_DELETE(&allocator, s_allocatorStub);
s_allocatorStub = NULL;