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:
David Elliott
2005-09-20 21:19:25 +00:00
parent 219ee9ba9d
commit 9a7247f0e9
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ WX_IMPLEMENT_POSER(wxPoserNSMenu);
wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
if(menu)
menu->Cocoa_dealloc();
[super dealloc];
}
@end // wxPoserNSMenu

View File

@@ -64,6 +64,7 @@
- (void)dealloc
{
[m_image release];
[super dealloc];
}
- (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel