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:
David Elliott
2004-04-11 00:48:55 +00:00
parent 15ad38c34f
commit 264c023f3e

View File

@@ -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();
}