From dd068fe6b75eeb7e5baf948473dfcebcb628239f Mon Sep 17 00:00:00 2001 From: Steven Sherry Date: Wed, 2 Oct 2024 12:49:46 -0500 Subject: [PATCH] fix(ios): fix retain cycle caused by CDVPluginManager (#7692) (#7694) --- .../CapacitorCordova/Classes/Public/CDVPluginManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h b/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h index 134959c38..b67fbba8a 100644 --- a/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h +++ b/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h @@ -15,8 +15,8 @@ @property (nonatomic, strong) NSMutableDictionary * pluginsMap; @property (nonatomic, strong) NSMutableDictionary * pluginObjects; @property (nonatomic, strong) NSMutableDictionary * settings; -@property (nonatomic, strong) UIViewController * viewController; -@property (nonatomic, strong) WKWebView * webView; +@property (nonatomic, weak) UIViewController * viewController; +@property (nonatomic, weak) WKWebView * webView; @property (nonatomic, strong) id commandDelegate; - (id)initWithParser:(CDVConfigParser*)parser viewController:(UIViewController*)viewController webView:(WKWebView *)webview;