adding an autorelease capability (got weird crashes when deleting tools from a toolbar otherwise)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-12-10 13:08:42 +00:00
parent 95c336d620
commit 9611686694
2 changed files with 19 additions and 0 deletions

View File

@@ -75,6 +75,10 @@ public:
void MacSetCurrentEvent( WXEVENTREF event , WXEVENTHANDLERCALLREF handler )
{ m_macCurrentEvent = event ; m_macCurrentEventHandlerCallRef = handler ; }
// adding a CFType object to be released only at the end of the current event cycle (increases the
// refcount of the object passed), needed in case we are in the middle of an event concering an object
// we want to delete and cannot do it immediately
void MacAddToAutorelease( void* cfrefobj );
public:
static wxWindow* s_captureWindow ;
static long s_lastModifiers ;