From 8edfc3b5acdbe5ecb91c44db72e06ea301fa3e3e Mon Sep 17 00:00:00 2001 From: Ivan Ponomarev Date: Tue, 22 Jan 2019 20:02:19 +0300 Subject: Fixed possible crash in pck_packer.cpp due to wrong memory freeing. --- core/io/pck_packer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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; }; -- cgit v1.2.3