summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/resourcemanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index f7a2586e..0b8d6c35 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -442,10 +442,12 @@ bool ResourceManager::copyFile(const std::string &src, const std::string &dst)
PHYSFS_close(srcFile);
PHYSFS_close(dstFile);
+ free(buf);
return true;
}
-std::vector<std::string> ResourceManager::loadTextFile(const std::string &fileName)
+std::vector<std::string> ResourceManager::loadTextFile(
+ const std::string &fileName)
{
int contentsLength;
char *fileContents = (char*)loadFile(fileName, contentsLength);