X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7848088476db284a94f19eeb24411b45d676ac46..86b79b93fbbb0c2e90e6595f7fea0f979b80881c:/src/cocoa/notebook.mm 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(); }