From: Stefan Csomor Date: Wed, 3 Mar 2010 23:00:36 +0000 (+0000) Subject: fixing leak, fixes #11781 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c9413b7de1e86bc3e2d96b9bc55d35d287ee0f7 fixing leak, fixes #11781 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/menuitem.mm b/src/osx/cocoa/menuitem.mm index 680d3c0cc7..cb525c3fac 100644 --- a/src/osx/cocoa/menuitem.mm +++ b/src/osx/cocoa/menuitem.mm @@ -223,6 +223,7 @@ wxMenuItemCocoaImpl::~wxMenuItemCocoaImpl() { if ( ![m_osxMenuItem isSeparatorItem] ) [(wxNSMenuItem*)m_osxMenuItem setImplementation:nil]; + [m_osxMenuItem release]; }