diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-05-14 18:45:03 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-30 10:38:48 +0200 |
commit | 67a101af142355a0ca7cdc234b7ee1716a25d87c (patch) | |
tree | 1e0c99bdd9667d24e71075192d8616a3f9c2f4c4 /src/particles | |
parent | 9ba195479ac3bc2c64d43ecf26f8c97e65483a5c (diff) |
Fix potential null pointer dereferencing
These were found by
http://www.viva64.com/en/b/025
most issues are rather cosmetic.
Change-Id: I7cc12610aae6a43d26bedb9b480863c0695ddfa3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/particles')
-rw-r--r-- | src/particles/qquickitemparticle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/particles/qquickitemparticle.cpp b/src/particles/qquickitemparticle.cpp index 0fe0b2ae0b..1f357df20d 100644 --- a/src/particles/qquickitemparticle.cpp +++ b/src/particles/qquickitemparticle.cpp @@ -163,6 +163,7 @@ void QQuickItemParticle::tick(int time) m_deletables.clear(); foreach (QQuickParticleData* d, m_loadables){ + Q_ASSERT(d); if (m_stasis.contains(d->delegate)) qWarning() << "Current model particles prefers overwrite:false"; //remove old item from the particle that is dying to make room for this one |