summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-22 23:14:56 +0100
committerGitHub <noreply@github.com>2019-01-22 23:14:56 +0100
commitf48d4f6655e7332a32ac388314536bded331b98b (patch)
treec91455b5dbceb3fe065807f2984840c265e1ac5c /core
parentab843b16984d8b62a1100d9b77d8b0dcdc4252bb (diff)
parent8edfc3b5acdbe5ecb91c44db72e06ea301fa3e3e (diff)
Merge pull request #25233 from ivanarh/master
Fixed possible crash in pck_packer.cpp due to wrong memory freeing.
Diffstat (limited to 'core')
-rw-r--r--core/io/pck_packer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp
index 36bd429bc0..8920bbfb81 100644
--- a/core/io/pck_packer.cpp
+++ b/core/io/pck_packer.cpp
@@ -175,7 +175,7 @@ Error PCKPacker::flush(bool p_verbose) {
printf("\n");
file->close();
- memdelete(buf);
+ memdelete_arr(buf);
return OK;
};