Add a wxAutoNSAutoreleasePool to wxBitmap::CopyFromIcon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-07-28 20:34:42 +00:00
parent 594d84fede
commit 99635c9934

View 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];