From dc044fcbca34fda61a4b2db32c34c4ce75a2b01e Mon Sep 17 00:00:00 2001 From: T Date: Sat, 28 Mar 2020 16:30:21 +0800 Subject: [PATCH] Fix crash under iOS 10.x Remove observer before webkit's deinit --- ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift b/ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift index 299e255..b9d51d2 100644 --- a/ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift +++ b/ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift @@ -47,6 +47,7 @@ public class SwiftFlutterHtmlToPdfPlugin: NSObject, FlutterPlugin{ } // dispose WKWebView + self.urlObservation = nil self.wkWebView = nil result(convertedFilePath) }