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