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

View File

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