Make sure Close calls Cef.Shutdown()

This commit is contained in:
amaitland
2014-08-25 20:03:58 +10:00
parent a6bacdec55
commit 35d7fc6ea4
+6 -1
View File
@@ -54,6 +54,11 @@ namespace CefSharp.WinForms.Example
}
private void ExitMenuItemClick(object sender, EventArgs e)
{
ExitApplication();
}
private void ExitApplication()
{
Cef.Shutdown();
Close();
@@ -123,7 +128,7 @@ namespace CefSharp.WinForms.Example
if (browserTabControl.Controls.Count == 0)
{
Close();
ExitApplication();
}
}