Fix ZipIO crash when reused (and possible leaks).
This commit is contained in:
parent
9963ae3553
commit
d36c5514d3
12 changed files with 70 additions and 41 deletions
|
|
@ -1334,7 +1334,8 @@ Error EditorExportPlatform::save_pack(const Ref<EditorExportPreset> &p_preset, b
|
|||
Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path) {
|
||||
EditorProgress ep("savezip", TTR("Packing"), 102, true);
|
||||
|
||||
zlib_filefunc_def io = zipio_create_io();
|
||||
Ref<FileAccess> io_fa;
|
||||
zlib_filefunc_def io = zipio_create_io(&io_fa);
|
||||
zipFile zip = zipOpen2(p_path.utf8().get_data(), APPEND_STATUS_CREATE, nullptr, &io);
|
||||
|
||||
ZipData zd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue