在UIWebview加载NSURLRequest时,内存泄漏

我为我的应用程序创build了自定义浏览器。 每当我加载一个URL请求到Web视图时,可以看到内存泄漏。 请注意,没有回溯显示。 应用程序有一个webview和一个刷新button下面给出。

刷新button上的代码如下

- (IBAction)refresh:(id)sender { // Some solution suggested by online community but in vain [wvWebView loadHTMLString:@"" baseURL:nil]; [wvWebView stopLoading]; wvWebView.delegate = nil; // Clearing cache Memory [[NSUserDefaults standardUserDefaults] setInteger:0 forKey:@"WebKitCacheModelPreferenceKey"]; [[NSURLCache sharedURLCache] removeAllCachedResponses]; [[NSURLCache sharedURLCache] setDiskCapacity:0]; [[NSURLCache sharedURLCache] setMemoryCapacity:0]; // Deleting all the cookies for(NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) { [[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie]; } // Loading webview with desired url [wvWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]]; } 

请帮我尽早解决这个问题