void onDispose (Event e) { /* Browser could have been disposed by one of the Dispose listeners */ if (!browser.isDisposed()) { /* invoke onbeforeunload handlers */ if (!browser.isClosing) { close (false); } } Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { elements.next ().dispose (false); } functions = null; if (eventFunction != null) { eventFunction.dispose (false); eventFunction = null; } C.free (webViewData); postData = null; headers = null; htmlBytes = null; }
void onDispose (Event e) { /* Browser could have been disposed by one of the Dispose listeners */ if (!browser.isDisposed()) { /* invoke onbeforeunload handlers */ if (!browser.isClosing) { close (false); } } Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { elements.next ().dispose (false); } functions = null; if (eventFunction != null) { eventFunction.dispose (false); eventFunction = null; } C.free (webViewData); postData = null; headers = null; htmlBytes = null; }
void onDispose (Event e) { /* Browser could have been disposed by one of the Dispose listeners */ if (!browser.isDisposed()) { /* invoke onbeforeunload handlers */ if (!browser.isClosing) { close (false); } } Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { elements.next ().dispose (false); } functions = null; if (eventFunction != null) { eventFunction.dispose (false); eventFunction = null; } C.free (webViewData); postData = null; headers = null; htmlBytes = null; }
} catch (SWTException e) { C.free (arrayPtr); variant.Release (); XPCOM.memmove (idPtr, Mozilla.IsPre_4 ? nsIVariant.NS_IVARIANT_IID : nsIVariant.NS_IVARIANT_10_IID, nsID.sizeof); rc = variant.SetAsArray (nsIDataType.VTYPE_INTERFACE_IS, idPtr, length, arrayPtr); C.free (idPtr); C.free (arrayPtr); if (rc != XPCOM.NS_OK) Mozilla.error (rc);
C.free (cookieString);