Should not set pointer to zero if we're going to use it again.
Task-number: QTBUG-20407
Change-Id: Iea1ea879bf3fe53e2e8ac8d93648ab28a0fc7b12
Reviewed-on: http://codereview.qt.nokia.com/2064
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
m_available << datum->modelIndex;
datum->modelIndex = -1;
datum->delegate = 0;
- datum = 0;
m_activeCount--;
}
}
void QSGParticleSystem::finishNewDatum(QSGParticleData *pd){
+ Q_ASSERT(pd);
m_groupData[pd->group]->prepareRecycler(pd);
foreach (QSGParticleAffector *a, m_affectors)