mirror of https://github.com/godotengine/godot
Fixes leak when importing zip in AssetLib
This commit is contained in:
parent
5127afa812
commit
a7368a519e
|
|
@ -97,6 +97,7 @@ int zipio_close(voidpf opaque, voidpf stream) {
|
||||||
FileAccess *&f = *(FileAccess **)opaque;
|
FileAccess *&f = *(FileAccess **)opaque;
|
||||||
if (f) {
|
if (f) {
|
||||||
f->close();
|
f->close();
|
||||||
|
memdelete(f);
|
||||||
f = NULL;
|
f = NULL;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue