Merge pull request #35425 from timothyqiu/assetlib-import-leak
Fixes leak when importing zip in AssetLib
This commit is contained in:
commit
2ee15f650e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue