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.