Cocoa: Fix zombie NSScreen crash
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Wed, 2 Jan 2013 15:42:16 +0000 (16:42 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 4 Jan 2013 12:20:06 +0000 (13:20 +0100)
commitf415d86d1e88410d22607729ec7f5485a70fc2ad
treeb5ea493dc9faad3af1162f739f0269b8ed0050ce
parentd75b21790162694ce5f595ddf330af06df09644b
Cocoa: Fix zombie NSScreen crash

While the Cocoa documentation says we should not cache [NSScreen screens],
it seems that we should not cache its referenced objects either. This
caused a crash in desktop components when using Dial because, given
the way it is being rendered, we need to know the screen pixel ratio.

Task-number: QTCOMPONENTS-1279
Change-Id: If5c3c6f14d04925215b9dca011143a2056a68846
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
src/plugins/platforms/cocoa/qcocoaintegration.h
src/plugins/platforms/cocoa/qcocoaintegration.mm