Fix macOS memory leaks, also avoid false positive warnings from clang analyzer
__clang_analyzer__ is a constant that only is defined during analyze build, this helps avoiding false positives as long as there is no specific way to silence analyzer messages
This commit is contained in:
@@ -3563,12 +3563,15 @@ bool wxWidgetCocoaImpl::EnableTouchEvents(int eventsMask)
|
||||
}
|
||||
else // We do want to have gesture events.
|
||||
{
|
||||
// clang does not see that the owning object always destroys its extra field
|
||||
#ifndef __clang_analyzer__
|
||||
wxCocoaGestures::StoreForObject
|
||||
(
|
||||
this,
|
||||
new wxCocoaGesturesImpl(this, m_osxView, eventsMask)
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
[m_osxView setAcceptsTouchEvents:YES];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user