Add wxAutoNSAutoreleasePool to SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -260,6 +260,7 @@ bool wxNotebook::SetPageImage(size_t nPage, int nImage)
|
||||
|
||||
int wxNotebook::SetSelection(size_t nPage)
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
[GetNSTabView() selectTabViewItemAtIndex:nPage];
|
||||
return GetSelection();
|
||||
}
|
||||
|
Reference in New Issue
Block a user