Cocoa: avoid a crash in QCocoaDrag
authorLiang Qi <liang.qi@digia.com>
Thu, 28 Nov 2013 13:42:56 +0000 (14:42 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 29 Nov 2013 07:49:06 +0000 (08:49 +0100)
commitd55db6dd535149adca77a5d5a1bb61823aee94b5
treeb3f8921a176102a06e7839c1f74d3184758ae4ca
parentad684ff2a7d91a948ad9d2f3765dd08c78d81020
Cocoa: avoid a crash in QCocoaDrag

NSEvent needs to be copied.

Reference:
http://lists.apple.com/archives/cocoa-dev/2007/Dec/msg00678.html

Task-number: QTBUG-33533
Change-Id: I73709545573e59aab6875a8c3dd903cb171e858f
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/plugins/platforms/cocoa/qcocoadrag.h
src/plugins/platforms/cocoa/qcocoadrag.mm