diff --git a/Mage/BaseMapOverlay.swift b/Mage/BaseMapOverlay.swift index 50a84e89..e9e88a7c 100644 --- a/Mage/BaseMapOverlay.swift +++ b/Mage/BaseMapOverlay.swift @@ -18,6 +18,7 @@ import geopackage_ios @objc public var darkTheme = false @objc public func cleanup() { + super.close() featureTiles = nil } diff --git a/Mage/GeoPackage/GeoPackage.m b/Mage/GeoPackage/GeoPackage.m index be20f38a..f181361d 100644 --- a/Mage/GeoPackage/GeoPackage.m +++ b/Mage/GeoPackage/GeoPackage.m @@ -246,6 +246,7 @@ -(void) addGeoPackageCacheOverlay: (NSMutableDictionary * featureDaos = [linker featureDaosForTileTable:tileDao.tableName]; @@ -333,6 +340,7 @@ -(void) addGeoPackageTileCacheOverlay: (NSMutableDictionary