summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 43092e28d..ef5ccf128 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -1147,4 +1147,6 @@ void ResourceManager::deleteFilesInDirectory(std::string path)
if (file != "." && file != "..")
remove(name.c_str());
}
+ if (dir)
+ closedir(dir);
}