All examples running on 10.6 complained about missing autoreleasepools. This
patch adds them in where they were missing.
Change-Id: I18a1ddf486efdd1ece82d82d111b46e2ef064ff1
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
QCocoaIntegration::~QCocoaIntegration()
{
+ QCocoaAutoReleasePool pool;
if (!QCoreApplication::testAttribute(Qt::AA_MacPluginApplication)) {
// remove the apple event handlers installed by QCocoaApplicationDelegate
QT_MANGLE_NAMESPACE(QCocoaApplicationDelegate) *delegate = [QT_MANGLE_NAMESPACE(QCocoaApplicationDelegate) sharedDelegate];
qDebug() << "QCocoaWindow::~QCocoaWindow" << this;
#endif
+ QCocoaAutoReleasePool pool;
clearNSWindow(m_nsWindow);
[m_contentView release];
[m_nsWindow release];
void QCocoaWindow::setCocoaGeometry(const QRect &rect)
{
+ QCocoaAutoReleasePool pool;
if (m_nsWindow) {
NSRect bounds = qt_mac_flipRect(rect, window());
[m_nsWindow setContentSize : bounds.size];