summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Ponomarev <ivan.ponomarev@synesis.ru>2019-01-22 20:02:19 +0300
committerIvan Ponomarev <ivan.ponomarev@synesis.ru>2019-01-22 20:02:19 +0300
commit8edfc3b5acdbe5ecb91c44db72e06ea301fa3e3e (patch)
tree50633461aedf10e00e820bac3ad1994b2ff1e26b
parentcd45f05f7e930869fb8d58c62e5f866470b73e1a (diff)
Fixed possible crash in pck_packer.cpp due to wrong memory freeing.
-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;
};