diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2014-02-10 13:16:15 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-10 14:48:25 +0100 |
commit | cdf5af5ba4c80c98cf4967ecf82ecac80ce3b854 (patch) | |
tree | 6e5701ac6f5b2c602353430962f6ea5621d46fbc /src/location/location.pro | |
parent | 62234914bc39be509c6a764c99d592e0bc5ecb5c (diff) | |
download | qtlocation-cdf5af5ba4c80c98cf4967ecf82ecac80ce3b854.tar.gz |
Test that the mapping manager engine pointer is still valid.
QPointer holds a guarded pointer to a QObject. It must always be tested
prior to use.
Changed the parameter type to remove the need for the static_cast when
setting the QPointer member.
The root cause was that the tile fetcher object was not being destroyed
when the mapping manager engine was. Which was because the two objects
were in different threads. Some of the service specific tile fetchers
were directly calling into the engine objects across thread. Gah.
Since Qt 5 QNAM uses an application global thread for processing
requests, there is no need to use threads in the tile fetcher.
Change-Id: Id9df35ddfa78df2cbf334006fe5fc9726a75f92d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/location/location.pro')
0 files changed, 0 insertions, 0 deletions