mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-25 04:31:52 +00:00
DisposeHandle fix (null handles)
This commit is contained in:
parent
095a38596d
commit
922783b288
@ -206,10 +206,12 @@ namespace MM
|
||||
|
||||
HandleMap.erase(iter);
|
||||
|
||||
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