Call [super dealloc] from overridden dealloc methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,7 @@ WX_IMPLEMENT_POSER(wxPoserNSMenu);
|
||||
wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
|
||||
if(menu)
|
||||
menu->Cocoa_dealloc();
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end // wxPoserNSMenu
|
||||
|
@@ -64,6 +64,7 @@
|
||||
- (void)dealloc
|
||||
{
|
||||
[m_image release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel
|
||||
|
Reference in New Issue
Block a user