fixup! Fix dialog memory leakage