Return nullptr straight away

pull/3236/head
Evil Eye 4 months ago
parent 4652151630
commit aa808d63bc

@ -111,8 +111,7 @@ namespace LuaUtil
if (!newPtr)
{
Log(Debug::Error) << "Lua realloc " << osize << "->" << nsize << " failed";
smallAllocDelta = 0;
bigAllocDelta = 0;
return nullptr;
}
}
self->mTotalMemoryUsage += smallAllocDelta + bigAllocDelta;

Loading…
Cancel
Save