From 35d7fc6ea43e6bd620bd5b833cafc2315cf4dcae Mon Sep 17 00:00:00 2001 From: amaitland Date: Mon, 25 Aug 2014 20:03:58 +1000 Subject: [PATCH] Make sure Close calls Cef.Shutdown() --- CefSharp.WinForms.Example/BrowserForm.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CefSharp.WinForms.Example/BrowserForm.cs b/CefSharp.WinForms.Example/BrowserForm.cs index 2f068440e..969ab0e8f 100644 --- a/CefSharp.WinForms.Example/BrowserForm.cs +++ b/CefSharp.WinForms.Example/BrowserForm.cs @@ -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(); } }