From f061ac3ab31fce815e68c9b4e89f3e664ff953d2 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 30 Jun 2007 18:36:19 +0000 Subject: [PATCH] Fixed memory leak in right click menu of card list header git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@455 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/control/card_list.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/control/card_list.cpp b/src/gui/control/card_list.cpp index e84e2dc0..3e60a304 100644 --- a/src/gui/control/card_list.cpp +++ b/src/gui/control/card_list.cpp @@ -279,9 +279,9 @@ wxListItemAttr* CardListBase::OnGetItemAttr(long pos) const { void CardListBase::onColumnRightClick(wxListEvent&) { // show menu - wxMenu* m = new wxMenu; - m->Append(ID_SELECT_COLUMNS, _("&Select Columns..."), _("Select what columns should be shown and in what order.")); - PopupMenu(m); + wxMenu m; + m.Append(ID_SELECT_COLUMNS, _MENU_("card list columns"), _HELP_("card list columns")); + PopupMenu(&m); } void CardListBase::onColumnResize(wxListEvent& ev) { storeColumns();