Merge pull request #1537 from lioncash/wx

MemoryView: Fix a dealloc of a stack reference
This commit is contained in:
skidau 2014-11-14 13:00:21 +11:00
commit 1e5a232464
1 changed files with 5 additions and 5 deletions

View File

@ -230,11 +230,11 @@ void CMemoryView::OnMouseDownR(wxMouseEvent& event)
menu.Append(IDM_WATCHADDRESS, _("Add to &watch")); menu.Append(IDM_WATCHADDRESS, _("Add to &watch"));
menu.Append(IDM_TOGGLEMEMORY, _("Toggle &memory")); menu.Append(IDM_TOGGLEMEMORY, _("Toggle &memory"));
wxMenu viewAsSubMenu; wxMenu* viewAsSubMenu = new wxMenu;
viewAsSubMenu.Append(IDM_VIEWASFP, _("FP value")); viewAsSubMenu->Append(IDM_VIEWASFP, _("FP value"));
viewAsSubMenu.Append(IDM_VIEWASASCII, "ASCII"); viewAsSubMenu->Append(IDM_VIEWASASCII, "ASCII");
viewAsSubMenu.Append(IDM_VIEWASHEX, _("Hex")); viewAsSubMenu->Append(IDM_VIEWASHEX, _("Hex"));
menu.AppendSubMenu(&viewAsSubMenu, _("View As:")); menu.AppendSubMenu(viewAsSubMenu, _("View As:"));
PopupMenu(&menu); PopupMenu(&menu);
} }