summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorCrazy-P <patrickolsen@myw.dk>2018-08-26 09:19:02 +0800
committerCrazy-P <patrickolsen@myw.dk>2018-08-26 09:19:02 +0800
commite4af39cbc00446b03d142882a69813e94f0838b2 (patch)
tree2b7ec12aeba47ce12e515795bfc6563148f11878 /platform
parent8c435a343e9739f30cb2e347df95835c91c1ff1a (diff)
Fixes several resource leaks in ...
- gdscript - gdscript_compiler - regex - android/export - gles3/rasterizer (scene and storage)
Diffstat (limited to 'platform')
-rw-r--r--platform/android/export/export.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index b76b0d5dbe..5c8d9e078f 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -1591,8 +1591,11 @@ public:
String apkfname = "main." + itos(version_code) + "." + get_package_name(package_name) + ".obb";
String fullpath = p_path.get_base_dir().plus_file(apkfname);
err = save_pack(p_preset, fullpath);
+
if (err != OK) {
+ unzClose(pkg);
EditorNode::add_io_error("Could not write expansion package file: " + apkfname);
+
return OK;
}