From 1b738108deb1ec217115e38dde3ebd2210870213 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 17 Jul 2013 13:37:02 +0000 Subject: fixed Homepage filling git-svn-id: http://svn.miranda-ng.org/main/trunk@5398 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Utils.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/NewsAggregator') diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 74e801c198..258ec6a031 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -170,6 +170,7 @@ VOID GetNewsData(TCHAR *tszUrl, char **szData, HANDLE hContact, HWND hwndDlg) //запросить ввести логин и пароль и снова попытаться скачать } } + mir_free(szUrl); mir_free(nlhr.headers); } @@ -719,8 +720,11 @@ VOID CheckCurrentFeed(HANDLE hContact) mir_free(string); continue; } - if (!lstrcmpi(xi.getName(child), _T("link"))) { - db_set_ts(hContact, MODULE, "Homepage", xi.getText(child)); + if (!lstrcmpi(xi.getName(child), _T("link")) && xi.getText(child)) { + TCHAR *string = mir_tstrdup(xi.getText(child)); + ClearText(string); + db_set_ts(hContact, MODULE, "Homepage", string); + mir_free(string); continue; } if (!lstrcmpi(xi.getName(child), _T("description")) && xi.getText(child)) { -- cgit v1.2.3