Fixes leak when importing zip in AssetLib

This commit is contained in:
Haoyu Qiu 2020-01-22 09:34:18 +08:00
parent 5127afa812
commit a7368a519e

View file

@ -97,6 +97,7 @@ int zipio_close(voidpf opaque, voidpf stream) {
FileAccess *&f = *(FileAccess **)opaque;
if (f) {
f->close();
memdelete(f);
f = NULL;
}
return 0;