mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed leak report.
This commit is contained in:
parent
780f2c614f
commit
f166412693
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue