Skip to content

Commit dd068fe

Browse files
authored
fix(ios): fix retain cycle caused by CDVPluginManager (#7692) (#7694)
1 parent bf6ef8e commit dd068fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
@property (nonatomic, strong) NSMutableDictionary * pluginsMap;
1616
@property (nonatomic, strong) NSMutableDictionary * pluginObjects;
1717
@property (nonatomic, strong) NSMutableDictionary * settings;
18-
@property (nonatomic, strong) UIViewController * viewController;
19-
@property (nonatomic, strong) WKWebView * webView;
18+
@property (nonatomic, weak) UIViewController * viewController;
19+
@property (nonatomic, weak) WKWebView * webView;
2020
@property (nonatomic, strong) id <CDVCommandDelegate> commandDelegate;
2121

2222
- (id)initWithParser:(CDVConfigParser*)parser viewController:(UIViewController*)viewController webView:(WKWebView *)webview;

0 commit comments

Comments
 (0)