diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index 03e04f2488..2b12dac53b 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -212,6 +212,12 @@ protected : return self; } +- (void) dealloc +{ + [fieldEditor release]; + [super dealloc]; +} + - (void) setFieldEditor:(wxNSTextFieldEditor*) editor { fieldEditor = editor;