diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-16 15:59:22 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-16 15:59:22 +0000 |
commit | 9b99778dc834d59f0951d7d63da21d6018354d4c (patch) | |
tree | 84a64bedfc0ecbdf908828e3262db7a6105bb6eb /plugins | |
parent | c48a1b84f72cf016b6badf1c175ca02a8082bc9f (diff) |
NewsAggregator: some fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewsAggregator/Src/ExportImport.cpp | 2 | ||||
-rw-r--r-- | plugins/NewsAggregator/Src/Options.cpp | 1 | ||||
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/ExportImport.cpp b/plugins/NewsAggregator/Src/ExportImport.cpp index 63a8f28e42..e17e8196da 100644 --- a/plugins/NewsAggregator/Src/ExportImport.cpp +++ b/plugins/NewsAggregator/Src/ExportImport.cpp @@ -123,13 +123,13 @@ INT_PTR CALLBACK DlgProcImportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM if (NeedToImport) {
HXML parent = xi.getParent(node);
+ TCHAR tmpgroup[1024];
while (mir_tstrcmpi(xi.getName(parent), _T("body"))) {
for (int i = 0; i < xi.getAttrCount(parent); i++) {
if (!mir_tstrcmpi(xi.getAttrName(parent, i), _T("text"))) {
if ( !group)
group = (TCHAR *)xi.getAttrValue(parent, xi.getAttrName(parent, i));
else {
- TCHAR tmpgroup[1024];
mir_sntprintf(tmpgroup, SIZEOF(tmpgroup), _T("%s\\%s"), xi.getAttrValue(parent, xi.getAttrName(parent, i)), group);
group = tmpgroup;
}
diff --git a/plugins/NewsAggregator/Src/Options.cpp b/plugins/NewsAggregator/Src/Options.cpp index 061885880a..15a712fa6f 100644 --- a/plugins/NewsAggregator/Src/Options.cpp +++ b/plugins/NewsAggregator/Src/Options.cpp @@ -194,6 +194,7 @@ INT_PTR CALLBACK DlgProcChangeFeedOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP }
WindowList_Add(hChangeFeedDlgList, hwndDlg, hContact);
Utils_RestoreWindowPositionNoSize(hwndDlg, hContact, MODULE, "ChangeDlg");
+ delete nSelItem;
}
return TRUE;
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 83738c7fac..601156e5ca 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -552,6 +552,7 @@ LPCTSTR ClearText(CMString &result, const TCHAR *message) }
else result = message;
SysFreeString(bstrHtml);
+ SysFreeString(bstrRes);
return result;
}
|