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