This one was far to long lived and would delay
releases until application shutdown.
We might get more "no autoreleasepool in place"
warnings now, these should be fixed by adding local
auto release pools.
Change-Id: Ia7a46ab05fb1937154997d0c47b8899d2a0cef65
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
QPlatformFontDatabase *mFontDb;
QAbstractEventDispatcher *mEventDispatcher;
- QCocoaAutoReleasePool *mPool;
QPlatformAccessibility *mAccessibility;
QPlatformTheme *mPlatformTheme;
};
: mFontDb(new QCoreTextFontDatabase())
, mEventDispatcher(new QCocoaEventDispatcher())
{
- mPool = new QCocoaAutoReleasePool;
-
qApp->setAttribute(Qt::AA_DontUseNativeMenuBar, false);
NSApplication *cocoaApplication = [NSApplication sharedApplication];
QCocoaIntegration::~QCocoaIntegration()
{
delete mAccessibility;
- delete mPool;
}
bool QCocoaIntegration::hasCapability(QPlatformIntegration::Capability cap) const