diff options
author | Ivan Ponomarev <ivan.ponomarev@synesis.ru> | 2019-01-22 20:02:19 +0300 |
---|---|---|
committer | Ivan Ponomarev <ivan.ponomarev@synesis.ru> | 2019-01-22 20:02:19 +0300 |
commit | 8edfc3b5acdbe5ecb91c44db72e06ea301fa3e3e (patch) | |
tree | 50633461aedf10e00e820bac3ad1994b2ff1e26b /core | |
parent | cd45f05f7e930869fb8d58c62e5f866470b73e1a (diff) |
Fixed possible crash in pck_packer.cpp due to wrong memory freeing.
Diffstat (limited to 'core')
-rw-r--r-- | core/io/pck_packer.cpp | 2 |
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; }; |