Merged trunk 47522:
Add a couple of wxAutoNSAutoreleasePool in some key spots where Cocoa itself does a number of autoreleases. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -384,6 +384,9 @@ wxWindow::~wxWindow()
|
|||||||
|
|
||||||
void wxWindowCocoa::CocoaAddChild(wxWindowCocoa *child)
|
void wxWindowCocoa::CocoaAddChild(wxWindowCocoa *child)
|
||||||
{
|
{
|
||||||
|
// Pool here due to lack of one during wx init phase
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
|
|
||||||
NSView *childView = child->GetNSViewForSuperview();
|
NSView *childView = child->GetNSViewForSuperview();
|
||||||
|
|
||||||
wxASSERT(childView);
|
wxASSERT(childView);
|
||||||
@@ -1294,6 +1297,9 @@ void wxCocoaTrackingRectManager::StopSynthesizingEvents()
|
|||||||
|
|
||||||
void wxCocoaTrackingRectManager::BuildTrackingRect()
|
void wxCocoaTrackingRectManager::BuildTrackingRect()
|
||||||
{
|
{
|
||||||
|
// Pool here due to lack of one during wx init phase
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
|
|
||||||
wxASSERT_MSG(!m_isTrackingRectActive, wxT("Tracking rect was not cleared"));
|
wxASSERT_MSG(!m_isTrackingRectActive, wxT("Tracking rect was not cleared"));
|
||||||
if([m_window->GetNSView() window] != nil)
|
if([m_window->GetNSView() window] != nil)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user