implemented dispose pattern

This commit is contained in:
JanEggers
2014-03-09 22:47:58 +01:00
parent eb20b2fdf8
commit a053abbffb
14 changed files with 102 additions and 39 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ namespace CefSharp
CefAppWrapper::CefAppWrapper(CefSubprocess^ managedApp)
{
_managedApp = managedApp;
cefApp = new CefRefPtr<CefAppUnmanagedWrapper>(new CefAppUnmanagedWrapper(this));
cefApp = new CefAppUnmanagedWrapper(this);
}
int CefAppWrapper::Run(array<String^>^ args)
@@ -18,6 +18,6 @@ namespace CefSharp
CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer());
return CefExecuteProcess(cefMainArgs, *(CefRefPtr<CefApp>*)cefApp);
return CefExecuteProcess(cefMainArgs, (CefApp*)cefApp.get());
}
}