Add QCocoaAutoReleasePool to QCocoaMenu::setText

Change-Id: Ia47d79d400c6c4dcd7a49595f05ddafb5a256fad
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Morten Johan Sorvig 2012-05-25 09:40:19 +02:00 committed by Qt by Nokia
parent 4cc7b71b31
commit d4a3b41be4

View File

@ -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)];