瀏覽代碼

Memory leak when canceling Login dialog

Source commit: 5ff854e332d1e60e440da50ece082a533abf97d9
Martin Prikryl 9 年之前
父節點
當前提交
b45cebf6d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/windows/WinMain.cpp

+ 1 - 1
source/windows/WinMain.cpp

@@ -905,9 +905,9 @@ int __fastcall Execute()
       {
         Retry = false;
         TObjectList * DataList = new TObjectList();
-        GetLoginData(AutoStartSession, Params, DataList, DownloadFile, NeedSession);
         try
         {
+          GetLoginData(AutoStartSession, Params, DataList, DownloadFile, NeedSession);
           // GetLoginData now Aborts when session is needed and none is selected
           if (DebugAlwaysTrue(!NeedSession || (DataList->Count > 0)))
           {