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:
parent
6e1a11f322
commit
cbcd6a26d5
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user