memory leak fix

This commit is contained in:
Marc Zinnschlag 2014-12-01 22:57:32 +01:00
parent 6e1a11f322
commit cbcd6a26d5

View file

@ -686,6 +686,8 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
boost::shared_ptr<ESM::ESMReader> ptr(mReader); boost::shared_ptr<ESM::ESMReader> ptr(mReader);
mReaders.push_back(ptr); mReaders.push_back(ptr);
} }
else
delete mReader;
mReader = 0; mReader = 0;