diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp index 36bd429bc09..8920bbfb819 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; };