* 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:
rassilon
2015-06-13 10:32:15 -04:00
parent 26ad951da4
commit 431cb511c3
39 changed files with 308 additions and 127 deletions
@@ -10,12 +10,17 @@ namespace CefSharp
{
namespace Internals
{
JavascriptCallbackWrapper::~JavascriptCallbackWrapper()
JavascriptCallbackWrapper::!JavascriptCallbackWrapper()
{
value = nullptr;
context = nullptr;
}
JavascriptCallbackWrapper::~JavascriptCallbackWrapper()
{
this->!JavascriptCallbackWrapper();
}
JavascriptResponse^ JavascriptCallbackWrapper::Execute(array<Object^>^ parms)
{
JavascriptResponse^ response = nullptr;