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
This commit is contained in:
twanvl
2007-06-30 18:36:19 +00:00
parent d5c27a4842
commit f061ac3ab3
+3 -3
View File
@@ -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();