From 661312a10515a7fb72bf3a0edbe42ecdf97850f9 Mon Sep 17 00:00:00 2001 From: Brian Osborn Date: Thu, 24 Aug 2023 09:49:56 -0600 Subject: [PATCH] geopackage-ios 8.0.3 destroy and close calls for memory --- Mage/BaseMapOverlay.swift | 1 + Mage/GeoPackage/GeoPackage.m | 10 ++++++++++ Mage/Map/Cache/GeoPackageFeatureTableCacheOverlay.m | 1 + Mage/Map/MapObservationManager.m | 1 + Mage/Mixins/FilteredObservationsMap.swift | 1 + Mage/Mixins/SFGeometryMap.swift | 1 + 6 files changed, 15 insertions(+) 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