WKWebViewMessageHandlerMemoryLeakDemo Repro steps Build and run the app Tap "Show WebView", then dismiss the presented VC Repeat it for three times Use "Debug Memory Graph", check how many DemoScriptHandler instances are retained License Public Domain.