mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
MemoryView: Fix a dealloc of a stack reference
stack allocation only works with the root menu. Any other children must be heap allocated. These however, will be freed by wxWidgets.
This commit is contained in:
parent
5fb94230cd
commit
ffc00b42e9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user