فهرست منبع

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)))
           {