This is an automated email from the ASF dual-hosted git repository.

shazron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new e75c38f  CB-13382 dealloc the webViewEngine (#359)
e75c38f is described below

commit e75c38f65d05b8bbca1178d6ace309a2df7844da
Author: Suraj Pindoria <pindoria.su...@gmail.com>
AuthorDate: Tue Feb 27 21:01:44 2018 -0800

    CB-13382 dealloc the webViewEngine (#359)
    
    * CB-13382: (ios) Added destroyWebView method for CDVViewController
    
    * CB-13382: (ios) Remove new function and add to delloc method
---
 CordovaLib/Classes/Public/CDVViewController.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CordovaLib/Classes/Public/CDVViewController.m 
b/CordovaLib/Classes/Public/CDVViewController.m
index f34b3dd..081c916 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -782,6 +782,11 @@
     [CDVUserAgentUtil releaseLock:&_userAgentLockToken];
     [_commandQueue dispose];
     [[self.pluginObjects allValues] 
makeObjectsPerformSelector:@selector(dispose)];
+
+    [self.webViewEngine loadHTMLString:@"about:blank" baseURL:nil];
+    [self.pluginObjects removeAllObjects];
+    [self.webView removeFromSuperview];
+    self.webViewEngine = nil;
 }
 
 - (NSInteger*)userAgentLockToken

-- 
To stop receiving notification emails like this one, please contact
shaz...@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to