From e94f080dd0e19266003da01583222784c9169fc2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Jul 2018 13:21:23 +0300 Subject: Weather: - persistent connection removed due to memory corruption problems; - warning fixed; - version bump --- plugins/Weather/src/weather_addstn.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Weather/src/weather_addstn.cpp') diff --git a/plugins/Weather/src/weather_addstn.cpp b/plugins/Weather/src/weather_addstn.cpp index e683f561ac..fdc28202b9 100644 --- a/plugins/Weather/src/weather_addstn.cpp +++ b/plugins/Weather/src/weather_addstn.cpp @@ -280,7 +280,6 @@ int IDSearch(wchar_t *sID, const int searchId) IDSearchProc(sID, searchId, &Item->Data.IDSearch, Item->Data.InternalName, Item->Data.DisplayName); Item = Item->next; } - NetlibHttpDisconnect(); } // if the station ID is #, return a dummy result and quit the funciton else { @@ -411,16 +410,14 @@ int NameSearchProc(wchar_t *name, const int searchId, WINAMESEARCH *sData, wchar // return 0 if no error int NameSearch(wchar_t *name, const int searchId) { - WIDATALIST *Item = WIHead; - // search every weather service using the search station name + WIDATALIST *Item = WIHead; while (Item != nullptr) { if (Item->Data.NameSearch.Single.Available || Item->Data.NameSearch.Multiple.Available) NameSearchProc(name, searchId, &Item->Data.NameSearch, Item->Data.InternalName, Item->Data.DisplayName); Item = Item->next; } - NetlibHttpDisconnect(); return 0; } -- cgit v1.2.3