From 15eb669633561bb2a31c1bdef6f03c91c6c23bc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Dec 2013 18:32:41 +0000 Subject: 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 --- src/modules/clist/genmenuopt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/clist/genmenuopt.cpp') 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; } -- cgit v1.2.3