1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Close NIF file resource after loading it into memory

This commit is contained in:
scrawl 2013-01-12 06:37:43 +01:00
parent 101810d1e8
commit 31e6d28b19

View File

@ -177,6 +177,8 @@ NIFFile::NIFFile(const std::string &name, psudo_private_modifier)
{ {
inp = Ogre::ResourceGroupManager::getSingleton().openResource(name); inp = Ogre::ResourceGroupManager::getSingleton().openResource(name);
parse(); parse();
// Make sure to close the file after it was loaded into memory
inp.setNull();
} }
NIFFile::~NIFFile() NIFFile::~NIFFile()