diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-16 18:32:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-16 18:32:41 +0000 |
commit | 15eb669633561bb2a31c1bdef6f03c91c6c23bc9 (patch) | |
tree | dac8f812551f2802e2a3a0ac5edf85ed3eb987e3 /src | |
parent | 9c6390cf431905fcb8749b80c55794031ded2d8a (diff) |
also there's no need to free non-allocated memory
git-svn-id: http://svn.miranda-ng.org/main/trunk@7252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/clist/genmenuopt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/clist/genmenuopt.cpp b/src/modules/clist/genmenuopt.cpp index 38294756ae..1e2649b779 100644 --- a/src/modules/clist/genmenuopt.cpp +++ b/src/modules/clist/genmenuopt.cpp @@ -137,14 +137,14 @@ static int BuildMenuObjectsTree(HWND hwndDlg) return FALSE;
for (i=0; i < g_menus.getCount(); i++) {
- if (g_menus[i]->id == (int)hStatusMenuObject || !g_menus[i]->m_bUseUserDefinedItems)
+ TIntMenuObject *p = g_menus[i];
+ if (p->id == (int)hStatusMenuObject || !p->m_bUseUserDefinedItems)
continue;
- tvis.item.lParam = (LPARAM)g_menus[i]->id;
- tvis.item.pszText = TranslateTS(g_menus[i]->ptszDisplayName);
+ tvis.item.lParam = (LPARAM)p->id;
+ tvis.item.pszText = TranslateTS(p->ptszDisplayName);
tvis.item.iImage = tvis.item.iSelectedImage = TRUE;
TreeView_InsertItem(hTree, &tvis);
- mir_free(tvis.item.pszText);
}
return 1;
}
|