]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/NSMenu.mm
check for comctl32.dll version in wxUxThemeEngine::Initialize()
[wxWidgets.git] / src / cocoa / NSMenu.mm
index a930b8a4dee7b0b3d6dda890096b35da8a9fe02d..45089152892c8aba695823dedc6af1dc8daca814 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "wx/cocoa/NSMenu.h"
 #include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/autorelease.h"
 
 #import <Foundation/NSString.h>
 #import <AppKit/NSMenu.h>
@@ -53,6 +54,7 @@ WX_IMPLEMENT_POSER(wxPoserNSMenu);
 // ============================================================================
 bool wxCocoaNSMenu::CocoaCreate(const wxString &title)
 {
+    wxAutoNSAutoreleasePool pool;
     wxLogDebug("CocoaCreate: "+title);
     m_cocoaNSMenu = [[NSMenu alloc] initWithTitle: [NSString stringWithCString: title.c_str()]];
     return true;