From a3ccc5861415f1a65f63edb7a0302e829a964a25 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sun, 25 Sep 2022 13:10:49 -0600 Subject: [PATCH] Fix msedgewebview2.exe leak --- CHANGELOG.md | 4 ++++ Wabbajack.App.Wpf/Views/BrowserWindow.xaml.cs | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12d3793f..15ffa229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ #### Version - 3.0.1.5 - 9/??/2022 * Fix MO2ArchiveName resolution +* Improve performance of the compiler stack +* Save the location of the browser window and open the next window in the same location +* Fix a leak of msedgwebview2.exe instances when doing manual downloads + #### Version - 3.0.1.4 - 9/21/2022 * Fix several of case sensitive path comparisons, that could result in deleting downloads diff --git a/Wabbajack.App.Wpf/Views/BrowserWindow.xaml.cs b/Wabbajack.App.Wpf/Views/BrowserWindow.xaml.cs index 7ecc8d34..267de3b9 100644 --- a/Wabbajack.App.Wpf/Views/BrowserWindow.xaml.cs +++ b/Wabbajack.App.Wpf/Views/BrowserWindow.xaml.cs @@ -54,6 +54,11 @@ public partial class BrowserWindow : MetroWindow }); vm.RunWrapper(CancellationToken.None) - .ContinueWith(_ => Dispatcher.Invoke(Close)); + .ContinueWith(_ => Dispatcher.Invoke(() => + { + Close(); + Browser.Dispose(); + Browser = null; + })); } } \ No newline at end of file