summaryrefslogtreecommitdiff
path: root/src/common/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/resourcemanager.cpp')
-rw-r--r--src/common/resourcemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/resourcemanager.cpp b/src/common/resourcemanager.cpp
index bd6961d9..1dbbcaa9 100644
--- a/src/common/resourcemanager.cpp
+++ b/src/common/resourcemanager.cpp
@@ -104,7 +104,7 @@ char *ResourceManager::loadFile(const std::string &fileName, int &fileSize)
fileSize = PHYSFS_fileLength(file);
// Allocate memory and load the file
- char *buffer = (char *) malloc(fileSize + 1);
+ auto buffer = (char *) malloc(fileSize + 1);
if (PHYSFS_readBytes(file, buffer, fileSize) != fileSize)
{
free(buffer);