From 2f4b249fcfe15a5142fb48e4121b3ecf9f4549c6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 7 Jun 2017 14:05:30 +0200 Subject: [PATCH] analyzer warning: setAttributedTitle has copy semantics, therefore we have to release what we allocated --- src/osx/cocoa/window.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 3eb68e4a2d..682ffa9f26 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -2476,6 +2476,8 @@ void wxWidgetCocoaImpl::SetLabel( const wxString& title, wxFontEncoding encoding [attrString endEditing]; [(id)m_osxView setAttributedTitle:attrString]; + + [attrString release]; return; }