2
3
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:
2011-07-21 11:53:18 -07:00
parent 5052c7168a
commit a06ed447df

View File

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