From a63fd77a50d5623961202988e0369d3ec9510ece Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Fri, 26 Jan 2018 15:40:00 +0200 Subject: [PATCH] shutdown old thread --- QuickLook/ViewerWindow.Actions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QuickLook/ViewerWindow.Actions.cs b/QuickLook/ViewerWindow.Actions.cs index 7d27303..a7c446e 100644 --- a/QuickLook/ViewerWindow.Actions.cs +++ b/QuickLook/ViewerWindow.Actions.cs @@ -273,6 +273,7 @@ namespace QuickLook //Dispatcher.BeginInvoke(new Action(Hide), DispatcherPriority.ApplicationIdle); ViewWindowManager.GetInstance().ForgetCurrentWindow(); + BeginClose(); ProcessHelper.PerformAggressiveGC(); } @@ -280,6 +281,7 @@ namespace QuickLook internal void BeginClose() { UnloadPlugin(); + busyDecorator.Dispose(); Close();