]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/dcmemory.mm
Semicolon fixes according to Vadim's note about being danger (OW,BCC,MinGW,DMC tested).
[wxWidgets.git] / src / cocoa / dcmemory.mm
index 7ce8c835aa88af74217a0fdaa09e30cf0f3b17b9..1c79b3ad67bd2dfaad83d6fc56eb7ec555e66fc7 100644 (file)
@@ -15,6 +15,8 @@
     #include "wx/dcmemory.h"
 #endif //WX_PRECOMP
 
+#include "wx/cocoa/autorelease.h"
+
 #import <AppKit/NSImage.h>
 #import <AppKit/NSAffineTransform.h>
 #import <AppKit/NSGraphicsContext.h>
@@ -67,6 +69,7 @@ bool wxMemoryDC::CocoaUnlockFocus()
 // instead copy the data to an offscreen window, then copy it back
 void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
 {
+    wxAutoNSAutoreleasePool pool;
     if(m_selectedBitmap.Ok())
     {
         CocoaTakeFocus();