mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
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
|
@ -64,7 +64,8 @@ void JavaScriptToolsEditorPlugin::_download_zip(Variant p_v) {
|
|||
}
|
||||
String resource_path = ProjectSettings::get_singleton()->get_resource_path();
|
||||
|
||||
zlib_filefunc_def io = zipio_create_io();
|
||||
Ref<FileAccess> io_fa;
|
||||
zlib_filefunc_def io = zipio_create_io(&io_fa);
|
||||
|
||||
// Name the downloaded ZIP file to contain the project name and download date for easier organization.
|
||||
// Replace characters not allowed (or risky) in Windows file names with safe characters.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue