Skip to content

Commit 5e72078

Browse files
committed
Fix memory leak
1 parent 2d4d0e2 commit 5e72078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Intermodular/Helpers/AppKit or UIKit/AppKitOrUIKitViewControllerResolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private struct _ResolveAppKitOrUIKitViewController: ViewModifier {
256256
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
257257
private struct ProvideNavigator: ViewModifier {
258258
struct Navigator: SwiftUIX.Navigator {
259-
var base: AppKitOrUIKitViewController?
259+
weak var base: AppKitOrUIKitViewController?
260260

261261
private var nearestNavigator: _UINavigationControllerNavigatorAdaptorBox? {
262262
base?.nearestNavigationController.map(_UINavigationControllerNavigatorAdaptorBox.init(navigationController:))

0 commit comments

Comments
 (0)