Cocoa GL context: do not crash when closing windows
authorLaszlo Agocs <lagocs83@gmail.com>
Fri, 31 Aug 2012 13:29:11 +0000 (16:29 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Sep 2012 05:02:00 +0000 (07:02 +0200)
commitaac24582c623a87b65733151b5f6af9771862b66
tree1a7d04e0307e508ded2d105f99197c224669c6ce
parent4b664eef64d5d51ba8de0e9792ba1c0f9883fa81
Cocoa GL context: do not crash when closing windows

Running hellowindow and closing its windows one by one would result
in crashes without the additional checks for the presence of the
underlying native window.

Change-Id: Id32bdfda9a77936380b2e9a95fb56ceb52028d9d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoaglcontext.mm