VSTGUI 4.9 iOS - How do we know when a CTextEdit can be forgotten?

I have a form where the user enters a name for a preset in a CTextEdit. After the user clicks ‘ok’, I want to destroy the form. On iOS it takes some time before textEdit->platFormLooseFocus() is called, and if my form has already been destroyed, the app will crash.

How can I know when it’s safe to destroy my form?

From the tests I’ve done today, it looks like we just need to make sure one complete idle() goes by before we forget the CTextEdit and all is good.