diff --git a/src/cocoa/NSMenu.mm b/src/cocoa/NSMenu.mm index c71a2d2e9b..ef19045c45 100644 --- a/src/cocoa/NSMenu.mm +++ b/src/cocoa/NSMenu.mm @@ -40,6 +40,7 @@ WX_IMPLEMENT_POSER(wxPoserNSMenu); wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self); if(menu) menu->Cocoa_dealloc(); + [super dealloc]; } @end // wxPoserNSMenu diff --git a/src/cocoa/notebook.mm b/src/cocoa/notebook.mm index 33687e9f0b..d79c9bd875 100644 --- a/src/cocoa/notebook.mm +++ b/src/cocoa/notebook.mm @@ -64,6 +64,7 @@ - (void)dealloc { [m_image release]; + [super dealloc]; } - (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel