mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
* Move unmanged objects into finalizer and call finalizer from Dispose.
* Remove DisposableResources from ManagedCefBrowserAdapter * Improve disposing of CefRequestWrapper * Have callbacks dispose themselves. * Allow the Application exit handler shutdown CEF from the Winforms example application.
This commit is contained in:
@@ -33,12 +33,20 @@ namespace CefSharp
|
||||
_javascriptMethodHandler = new JavascriptMethodHandler(gcnew Func<array<Object^>^, BrowserProcessResponse^>(this, &JavascriptMethodWrapper::Execute), callbackRegistry);
|
||||
}
|
||||
|
||||
~JavascriptMethodWrapper()
|
||||
!JavascriptMethodWrapper()
|
||||
{
|
||||
V8Value = nullptr;
|
||||
_javascriptMethodHandler = nullptr;
|
||||
}
|
||||
|
||||
~JavascriptMethodWrapper()
|
||||
{
|
||||
this->!JavascriptMethodWrapper();
|
||||
|
||||
_javascriptMethod = nullptr;
|
||||
_browserProcess = nullptr;
|
||||
}
|
||||
|
||||
void Bind();
|
||||
BrowserProcessResponse^ Execute(array<Object^>^ parameters);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user