summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormojganii <mojgan.jelodar@codic.se>2024-03-15 13:32:18 +0100
committermojganii <mojgan.jelodar@codic.se>2024-03-15 13:32:18 +0100
commit74581f2c91015c3afb498f32c6ab2f8d21f949ae (patch)
tree53feeb07eada854f8c685b9999c8cfe3586de27c
parent0a3c63ac912914628971dceca7b2f28d7b91d272 (diff)
downloadmullvadvpn-74581f2c91015c3afb498f32c6ab2f8d21f949ae.tar.xz
mullvadvpn-74581f2c91015c3afb498f32c6ab2f8d21f949ae.zip
Fix memory leak at LocationNode
-rw-r--r--ios/MullvadVPN/View controllers/SelectLocation/LocationNode.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/View controllers/SelectLocation/LocationNode.swift b/ios/MullvadVPN/View controllers/SelectLocation/LocationNode.swift
index 38e6197fcd..8be5c29580 100644
--- a/ios/MullvadVPN/View controllers/SelectLocation/LocationNode.swift
+++ b/ios/MullvadVPN/View controllers/SelectLocation/LocationNode.swift
@@ -13,7 +13,7 @@ class LocationNode {
let name: String
var code: String
var locations: [RelayLocation]
- var parent: LocationNode?
+ weak var parent: LocationNode?
var children: [LocationNode]
var showsChildren: Bool
var isHiddenFromSearch: Bool