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.
Merge pull request #1537 from lioncash/wx

MemoryView: Fix a dealloc of a stack reference