mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user