aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorThanasis Antoniou2019-12-16 22:58:26 +0200
committerThanasis Antoniou2019-12-16 22:59:10 +0200
commit0357293897ad80eb549e63952551c1781ad41b95 (patch)
tree3dbed6e83093dcd19760227aa87091ed53df41ed /backends/platform
parent4b2591b5c935bf5a2835cbfd10ac4202bb23e81b (diff)
downloadscummvm-rg350-0357293897ad80eb549e63952551c1781ad41b95.tar.gz
scummvm-rg350-0357293897ad80eb549e63952551c1781ad41b95.tar.bz2
scummvm-rg350-0357293897ad80eb549e63952551c1781ad41b95.zip
ANDROID: Fix crash due to adding '.' folder in SearchManager
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/android/asset-archive.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/android/asset-archive.cpp b/backends/platform/android/asset-archive.cpp
index 44e5ed80f2..255262d309 100644
--- a/backends/platform/android/asset-archive.cpp
+++ b/backends/platform/android/asset-archive.cpp
@@ -71,6 +71,9 @@ AssetInputStream::AssetInputStream(AAssetManager *as, const Common::String &path
}
AssetInputStream::~AssetInputStream() {
+ if (_asset != NULL) {
+ AAsset_close(_asset);
+ }
}
void AssetInputStream::close() {