From: David Elliott Date: Sun, 11 Apr 2004 00:48:55 +0000 (+0000) Subject: Add wxAutoNSAutoreleasePool to SetSelection() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/264c023f3e9a594982078b371544f7fc8aaa28af Add wxAutoNSAutoreleasePool to SetSelection() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/notebook.mm b/src/cocoa/notebook.mm index 3518e49a50..5df800e872 100644 --- a/src/cocoa/notebook.mm +++ b/src/cocoa/notebook.mm @@ -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(); }