]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxAutoNSAutoreleasePool to SetSelection()
authorDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 00:48:55 +0000 (00:48 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 00:48:55 +0000 (00:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/notebook.mm

index 3518e49a500278da28787a45d897eb26a4b83e2b..5df800e872146ec2ee750641a7ee002426c9d440 100644 (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();
 }