DisposeHandle fix (null handles)

This commit is contained in:
Kelvin Sherlock 2013-06-26 22:48:20 -04:00
parent 095a38596d
commit 922783b288

View File

@ -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);