mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
DisposeHandle fix (null handles)
This commit is contained in:
parent
095a38596d
commit
922783b288
@ -206,10 +206,12 @@ namespace MM
|
||||
|
||||
HandleMap.erase(iter);
|
||||
|
||||
uint8_t *ptr = info.address + Memory;
|
||||
|
||||
mplite_free(&pool, ptr);
|
||||
if (info.address)
|
||||
{
|
||||
uint8_t *ptr = info.address + Memory;
|
||||
|
||||
mplite_free(&pool, ptr);
|
||||
}
|
||||
HandleQueue.push_back(handle);
|
||||
|
||||
return SetMemError(0);
|
||||
|
Loading…
Reference in New Issue
Block a user