فهرست منبع

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;