forked from teamnwah/openmw-tes3coop
memory leak fix
This commit is contained in:
parent
6e1a11f322
commit
cbcd6a26d5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue