Browse Source

Ignore empty resource items in plClientResMgr list on destruction.

Joseph Davies 13 years ago
parent
commit
a06ed447df
  1. 3
      Sources/Plasma/PubUtilLib/plClientResMgr/plClientResMgr.cpp

3
Sources/Plasma/PubUtilLib/plClientResMgr/plClientResMgr.cpp

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

Loading…
Cancel
Save