mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
Add assertion/check for NIL key in plNetResManager::IKeyUnreffed()
This commit is contained in:
@ -98,5 +98,13 @@ void plNetResManager::IKeyReffed(plKeyImp* key)
|
||||
|
||||
void plNetResManager::IKeyUnreffed(plKeyImp* key)
|
||||
{
|
||||
// Expanded even with HS_DEBUGGING undefined. XXX
|
||||
// hsAssert( key != nil, "NetResMgr::NIL key to Unref" );
|
||||
if (key == nil) {
|
||||
ErrorAssert(104,
|
||||
"H:\\projects\\OpenURU\\Repo\\Foundry-CWE-ou-minkata\\MOULOpenSourceClientPlugin\\Plasma20\\Sources\\Plasma\\PubUtilLib\\plNetCommon\\plNetResManager.cpp",
|
||||
"NetResMgr::NIL key to Unref");
|
||||
} else {
|
||||
delete key;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user