Accessibility: make sure right objects are cached on linux
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Thu, 18 Oct 2012 17:31:59 +0000 (19:31 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 18 Oct 2012 22:44:54 +0000 (00:44 +0200)
commit730a5a994ff46055055c58b25bd059373dddb934
tree74dff63b02bb5d0ed76951f3f7d1b68e52f5a433
parent3ebee851b29e724dfb5fda7f057d105b0b0fa9ba
Accessibility: make sure right objects are cached on linux

The linux test would actually fail because the qobjects created
could end up having the same address (create-delete-create...).
After an object is deleted, it's not instantly removed from the
cache of valid objects.
Instead it would stay in the list with it's smart pointer becoming zero.

This patch adds the missing null pointer check so we are always up to date.

Change-Id: Ia7be14741d4798c2b8e75cb7127298c73cf206ef
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
src/platformsupport/linuxaccessibility/atspiadaptor.cpp