瀏覽代碼

Bug 1746: Failure when shutting down Windows

https://winscp.net/tracker/1746

Source commit: 7bf857c4bd897ebc2bfe71831cd0d564fb5967dd
Martin Prikryl 6 年之前
父節點
當前提交
6bfdce4c9b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      source/forms/CustomScpExplorer.cpp

+ 2 - 0
source/forms/CustomScpExplorer.cpp

@@ -287,6 +287,8 @@ __fastcall TCustomScpExplorerForm::~TCustomScpExplorerForm()
 {
   // this has to be one of the very first things to do
   StopUpdateThread();
+  // This is needed when shuting down Windows only. Otherwise it's already set NULL from Execute()
+  TTerminalManager::Instance()->ScpExplorer = NULL;
 
   delete FCustomCommandLocalFileList;
   delete FCustomCommandRemoteFileList;