浏览代码

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
   // this has to be one of the very first things to do
   StopUpdateThread();
   StopUpdateThread();
+  // This is needed when shuting down Windows only. Otherwise it's already set NULL from Execute()
+  TTerminalManager::Instance()->ScpExplorer = NULL;
 
 
   delete FCustomCommandLocalFileList;
   delete FCustomCommandLocalFileList;
   delete FCustomCommandRemoteFileList;
   delete FCustomCommandRemoteFileList;