a11y: Do not refer to destructed QObject in Windows bridge
authorJan Arve Saether <jan-arve.saether@digia.com>
Fri, 7 Dec 2012 14:29:06 +0000 (15:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 17:34:19 +0000 (18:34 +0100)
commitced154500de1dde42033579a7b29494934d8a02d
tree97fa07da70f8714a2f26860e2843ae8a090d7c8e
parent03e1e4138ccf6b73c73b2fed6db0e740af43ef76
a11y: Do not refer to destructed QObject in Windows bridge

The crash could happen if a QWidget in the UI got deleted, and
the AT client later tried to access the widget through the cache
(qAccessibleRecentSentEvents()).

Solution: Use a QPointer as a guard.

Task-number: QTBUG-26187

Change-Id: I1aa716766626cf171757e76ba255a6d5ae4fd854
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
src/plugins/platforms/windows/accessible/qwindowsaccessibility.cpp
src/plugins/platforms/windows/accessible/qwindowsmsaaaccessible.cpp