Skip to content

Commit d22f4b6

Browse files
committed
minor
1 parent 98b1900 commit d22f4b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bk2ch11p552webkit/ch24p825webview/WebViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,13 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKScriptM
341341
}
342342

343343
deinit {
344-
print("dealloc")
344+
print("view controller dealloc")
345345
// self.obs.removeAll()
346346
// with webkit, probably no need for this, but no harm done
347347
// self.wv.stopLoading()
348348
// break all retains
349349
let ucc = self.wv.configuration.userContentController
350-
ucc.removeAllUserScripts()
350+
ucc.removeAllUserScripts() // not really needed, but whatever
351351
ucc.removeScriptMessageHandler(forName:"playbutton")
352352
}
353353

0 commit comments

Comments
 (0)