Cocoa: remove autoreleasepool in QCocoaIntegration
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>
This commit is contained in:
parent
e79b9d6a36
commit
1a218a7ee1
@ -93,7 +93,6 @@ private:
|
|||||||
QPlatformFontDatabase *mFontDb;
|
QPlatformFontDatabase *mFontDb;
|
||||||
QAbstractEventDispatcher *mEventDispatcher;
|
QAbstractEventDispatcher *mEventDispatcher;
|
||||||
|
|
||||||
QCocoaAutoReleasePool *mPool;
|
|
||||||
QPlatformAccessibility *mAccessibility;
|
QPlatformAccessibility *mAccessibility;
|
||||||
QPlatformTheme *mPlatformTheme;
|
QPlatformTheme *mPlatformTheme;
|
||||||
};
|
};
|
||||||
|
@ -90,8 +90,6 @@ QCocoaIntegration::QCocoaIntegration()
|
|||||||
: mFontDb(new QCoreTextFontDatabase())
|
: mFontDb(new QCoreTextFontDatabase())
|
||||||
, mEventDispatcher(new QCocoaEventDispatcher())
|
, mEventDispatcher(new QCocoaEventDispatcher())
|
||||||
{
|
{
|
||||||
mPool = new QCocoaAutoReleasePool;
|
|
||||||
|
|
||||||
qApp->setAttribute(Qt::AA_DontUseNativeMenuBar, false);
|
qApp->setAttribute(Qt::AA_DontUseNativeMenuBar, false);
|
||||||
|
|
||||||
NSApplication *cocoaApplication = [NSApplication sharedApplication];
|
NSApplication *cocoaApplication = [NSApplication sharedApplication];
|
||||||
@ -141,7 +139,6 @@ QCocoaIntegration::QCocoaIntegration()
|
|||||||
QCocoaIntegration::~QCocoaIntegration()
|
QCocoaIntegration::~QCocoaIntegration()
|
||||||
{
|
{
|
||||||
delete mAccessibility;
|
delete mAccessibility;
|
||||||
delete mPool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QCocoaIntegration::hasCapability(QPlatformIntegration::Capability cap) const
|
bool QCocoaIntegration::hasCapability(QPlatformIntegration::Capability cap) const
|
||||||
|
Loading…
Reference in New Issue
Block a user