summaryrefslogtreecommitdiff
path: root/plugins/Weather
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-31 23:52:41 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-31 23:52:41 +0000
commit0d46616e79d43d1356e6050768d977dee1c642a4 (patch)
tree66af872f07c6cf783da45dfbfc8a0abb86119ab8 /plugins/Weather
parent8e36d350e4741231dfb7f528e0603f3c4868a1a2 (diff)
memleak fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather')
-rw-r--r--plugins/Weather/src/weather_contacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Weather/src/weather_contacts.cpp b/plugins/Weather/src/weather_contacts.cpp
index 8973d56f70..1edd2aae99 100644
--- a/plugins/Weather/src/weather_contacts.cpp
+++ b/plugins/Weather/src/weather_contacts.cpp
@@ -1,4 +1,4 @@
-/*
+ /*
Weather Protocol plugin for Miranda IM
Copyright (c) 2012 Miranda NG Team
Copyright (c) 2005-2011 Boris Krasnovskiy All Rights Reserved
@@ -269,10 +269,10 @@ INT_PTR CALLBACK DlgProcChange(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
// if the page is found (ie. valid ID), get the name of the city
if (search == NULL)
GetDataValue(&sData->IDSearch.Name, str, &szInfo);
-
- // free memory
- mir_free(szData);
}
+ // free memory
+ mir_free(szData);
+
NetlibHttpDisconnect();
}
// give no station name but only ID if the search is unavailable