Prevent memory leak in MCStack::realize on Mac