Add QCocoaAutoReleasePool to QCocoaMenu::setText
Change-Id: Ia47d79d400c6c4dcd7a49595f05ddafb5a256fad Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
parent
4cc7b71b31
commit
d4a3b41be4
@ -109,6 +109,7 @@ QCocoaMenu::QCocoaMenu() :
|
||||
|
||||
void QCocoaMenu::setText(const QString &text)
|
||||
{
|
||||
QCocoaAutoReleasePool pool;
|
||||
QString stripped = qt_mac_removeAmpersandEscapes(text);
|
||||
[m_nativeMenu setTitle:QCFString::toNSString(stripped)];
|
||||
[m_nativeItem setTitle:QCFString::toNSString(stripped)];
|
||||
|
Loading…
Reference in New Issue
Block a user