diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.h b/src/plugins/platforms/cocoa/qcocoaintegration.h index 5311eaff83..1852173b5b 100644 --- a/src/plugins/platforms/cocoa/qcocoaintegration.h +++ b/src/plugins/platforms/cocoa/qcocoaintegration.h @@ -93,7 +93,6 @@ private: QPlatformFontDatabase *mFontDb; QAbstractEventDispatcher *mEventDispatcher; - QCocoaAutoReleasePool *mPool; QPlatformAccessibility *mAccessibility; QPlatformTheme *mPlatformTheme; }; diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm index 445f67f1e7..6d7770fecc 100644 --- a/src/plugins/platforms/cocoa/qcocoaintegration.mm +++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm @@ -90,8 +90,6 @@ QCocoaIntegration::QCocoaIntegration() : mFontDb(new QCoreTextFontDatabase()) , mEventDispatcher(new QCocoaEventDispatcher()) { - mPool = new QCocoaAutoReleasePool; - qApp->setAttribute(Qt::AA_DontUseNativeMenuBar, false); NSApplication *cocoaApplication = [NSApplication sharedApplication]; @@ -141,7 +139,6 @@ QCocoaIntegration::QCocoaIntegration() QCocoaIntegration::~QCocoaIntegration() { delete mAccessibility; - delete mPool; } bool QCocoaIntegration::hasCapability(QPlatformIntegration::Capability cap) const