summaryrefslogtreecommitdiff
path: root/src/fs/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/files.cpp')
-rw-r--r--src/fs/files.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp
index 91433e287..fa9fe2de3 100644
--- a/src/fs/files.cpp
+++ b/src/fs/files.cpp
@@ -91,11 +91,11 @@ void Files::copyVirtFsFile(const std::string &restrict inFile,
const std::string &restrict outFile)
{
int size = 0;
- void *const buf = VirtFs::loadFile(inFile, size);
+ char *const buf = VirtFs::loadFile(inFile, size);
FILE *const file = fopen(outFile.c_str(), "w");
fwrite(buf, 1, size, file);
fclose(file);
- free(buf);
+ delete [] buf;
#ifdef ANDROID
if (mCallbackPtr)
{