Commit 421727a5 authored by twanvl's avatar twanvl

Fixed memory leak in right click menu of card list header

parent eff40ffc
...@@ -279,9 +279,9 @@ wxListItemAttr* CardListBase::OnGetItemAttr(long pos) const { ...@@ -279,9 +279,9 @@ wxListItemAttr* CardListBase::OnGetItemAttr(long pos) const {
void CardListBase::onColumnRightClick(wxListEvent&) { void CardListBase::onColumnRightClick(wxListEvent&) {
// show menu // show menu
wxMenu* m = new wxMenu; wxMenu m;
m->Append(ID_SELECT_COLUMNS, _("&Select Columns..."), _("Select what columns should be shown and in what order.")); m.Append(ID_SELECT_COLUMNS, _MENU_("card list columns"), _HELP_("card list columns"));
PopupMenu(m); PopupMenu(&m);
} }
void CardListBase::onColumnResize(wxListEvent& ev) { void CardListBase::onColumnResize(wxListEvent& ev) {
storeColumns(); storeColumns();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment