]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/checkbox.mm
fix warning on watcom
[wxWidgets.git] / src / cocoa / checkbox.mm
index 71fb5d4dc44f8b8794768257ce39e8f07ba50e4d..921a1d3a287c93dc07d97bfec019ccefcfcc8d6a 100644 (file)
@@ -13,6 +13,8 @@
 #include "wx/checkbox.h"
 #include "wx/log.h"
 
+#include "wx/cocoa/autorelease.h"
+
 #import <AppKit/NSButton.h>
 #import <Foundation/NSString.h>
 
@@ -29,6 +31,7 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID winid,
            const wxValidator& validator,
            const wxString& name)
 {
+    wxAutoNSAutoreleasePool pool;
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
     m_cocoaNSView = NULL;