Fix crash-on-exit in qmlscene.
authorMorten Sorvig <morten.sorvig@nokia.com>
Mon, 15 Aug 2011 11:50:22 +0000 (13:50 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Thu, 18 Aug 2011 07:50:06 +0000 (09:50 +0200)
commit4e6c4d50a5fe10e355802ac05ce143aed32cffb4
treee92dfdc843ddb51dca07f09998d22fac8fd5665a
parentc9d1adb7fa42cb36e5da0fb691efb6fd61f4d2f2
Fix crash-on-exit in qmlscene.

Take control over NSWindow deletion to make sure
it's lifetime matches that of the QCocoaWindow.

Change-Id: Ia10006d814345356e6aebe7fa1f9a0e012535786
Reviewed-on: http://codereview.qt.nokia.com/2960
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnswindowdelegate.mm