From 31e6d28b19f1afedcdefb0caa6a5664e413c72cf Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 12 Jan 2013 06:37:43 +0100 Subject: [PATCH] Close NIF file resource after loading it into memory --- components/nif/nif_file.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/nif/nif_file.cpp b/components/nif/nif_file.cpp index 07d34b9ea8..3db34e0cc6 100644 --- a/components/nif/nif_file.cpp +++ b/components/nif/nif_file.cpp @@ -177,6 +177,8 @@ NIFFile::NIFFile(const std::string &name, psudo_private_modifier) { inp = Ogre::ResourceGroupManager::getSingleton().openResource(name); parse(); + // Make sure to close the file after it was loaded into memory + inp.setNull(); } NIFFile::~NIFFile()