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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user