mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Ignore empty resource items in plClientResMgr list on destruction.
This commit is contained in:
@ -54,7 +54,8 @@ plClientResMgr::~plClientResMgr()
|
||||
std::map<std::string, plMipmap*>::iterator it;
|
||||
|
||||
for (it = this->ClientResources->begin(); it != this->ClientResources->end(); ++it) {
|
||||
it->second->UnRef();
|
||||
if (it->second)
|
||||
it->second->UnRef();
|
||||
}
|
||||
|
||||
delete this->ClientResources;
|
||||
|
Reference in New Issue
Block a user