diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-18 13:21:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-18 13:21:23 +0300 |
commit | e94f080dd0e19266003da01583222784c9169fc2 (patch) | |
tree | fd150c01741ebddf719bdef95fd3a622837f902c /plugins/Weather/src/weather_addstn.cpp | |
parent | adf1f2e587159bb99d820faa983ef3e357d41f40 (diff) |
Weather:
- persistent connection removed due to memory corruption problems;
- warning fixed;
- version bump
Diffstat (limited to 'plugins/Weather/src/weather_addstn.cpp')
-rw-r--r-- | plugins/Weather/src/weather_addstn.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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;
}
|