iOS issue destroying a CTextEdit

I’m having issue destroying a CTextEdit that’s in a CViewContainer on ios. Same operation is fine under Windows and macOS. Looks to be an issue with the ITextEditListener. Debug build on an iPad makes the CPU go to 100%. On a release build, iOS crashes. Here’s a pic of the stack trace.

I think I’ve tracked this down to how I’m creating my editor. This what I was doing previously:

UIView* view = [[UIView alloc]initWithFrame:(self.view.bounds)];
self.view = view;
editor = new Editor((__bridge void*)view);
editor->setRect(r);
editor->open((__bridge void*)view);

And now I’ve switched to this, but I’m not entirely sure if this correct yet.

UIView* view = [[UIView alloc]initWithFrame:(self.view.bounds)];
self.view = view;
editor = new Editor((void*)CFBridgingRetain(view));
editor->setRect(r);
editor->open((void*)CFBridgingRetain(view));

Nope, that didn’t make a difference. Still hanging on the deconstruction of CTextEdit.

This has to do with the new ITextEditListner implementation that was added to the VSTGUI master branch about a month ago. It doesn’t work properly on iOS. Removing it allows my application to run smoothly. I’ll report an issue on github.