From a7368a519eeb69377c1acd4143e037e8c05e1619 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 22 Jan 2020 09:34:18 +0800 Subject: [PATCH] Fixes leak when importing zip in AssetLib --- core/io/zip_io.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/io/zip_io.cpp b/core/io/zip_io.cpp index 582b7c906bb..40e902d874a 100644 --- a/core/io/zip_io.cpp +++ b/core/io/zip_io.cpp @@ -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;