MultiPointTouchArea: Guard _mouseTouchPoint with a QPointer.
authorRobin Burchell <robin.burchell@jollamobile.com>
Wed, 6 Aug 2014 11:51:19 +0000 (13:51 +0200)
committerJ-P Nurmi <jpnurmi@digia.com>
Fri, 8 Aug 2014 04:39:37 +0000 (06:39 +0200)
commitc0e47716c402da2333bfa4082c7b40e3b376135c
treefa7b329fd1a3296ff1f4c8b10b504a58a0a36725
parentca248a5b8edc4341da66d15186770539a7c16ddd
MultiPointTouchArea: Guard _mouseTouchPoint with a QPointer.

The touch point can be deleted (for instance, on ungrab()) without
_mouseTouchPoint being reset occurs.

This caused a crash on tst_qquickmultipointtoucharea::inFlickable with
MallocScribble=1 enabled on OS X (use-after-free).

Change-Id: Ife9f59d75827285b18bb1772ddbee30d79a3f0b5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/quick/items/qquickmultipointtoucharea.cpp
src/quick/items/qquickmultipointtoucharea_p.h