]> git.saurik.com Git - wxWidgets.git/commitdiff
Add a wxAutoNSAutoreleasePool to wxBitmap::CopyFromIcon.
authorDavid Elliott <dfe@tgwbd.org>
Sat, 28 Jul 2007 20:34:42 +0000 (20:34 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sat, 28 Jul 2007 20:34:42 +0000 (20:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/bitmap.mm

index b16ba01087db8b9b7b6902c3d7b331a067d967c8..a79df7fde95792325b46342d9228937fcd1d1357 100644 (file)
@@ -364,6 +364,9 @@ bool wxBitmap::SaveFile(const wxString& filename, wxBitmapType type, const wxPal
 
 bool wxBitmap::CopyFromIcon(const wxIcon& icon)
 {
+    // Pool here due to lack of one during wx init phase
+    wxAutoNSAutoreleasePool pool;
+
     UnRef();
     if(!icon.GetNSImage());
     [icon.GetNSImage() lockFocus];