Added wxAutoNSAutoreleasePool to DoGetBestSize method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
|
||||
#import <AppKit/NSControl.h>
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
|
||||
@@ -53,6 +55,7 @@ wxControl::~wxControl()
|
||||
|
||||
wxSize wxControl::DoGetBestSize() const
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
wxASSERT(m_cocoaNSView);
|
||||
NSRect storedRect = [m_cocoaNSView frame];
|
||||
[GetNSControl() sizeToFit];
|
||||
|
Reference in New Issue
Block a user