1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

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);
mReaders.push_back(ptr);
}
else
delete mReader;
mReader = 0;