Initialize the binding's self-pointer before calling addObject(), as some funky tests
try to delete the binding from within there and the self-pointer allows us to find out
later that the binding was deleted.
Change-Id: I8c9e3fe7304f304eace29c0631263b1ec021a8c4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
if (_valueTypeProperty)
targetCorePropertyData = QQmlPropertyPrivate::saveValueType(*_valueTypeProperty, _qobject->metaObject(), property->coreIndex, engine);
+ sharedState->allCreatedBindings.push(qmlBinding);
+ qmlBinding->m_mePtr = &sharedState->allCreatedBindings.top();
+
qmlBinding->setTarget(_bindingTarget, targetCorePropertyData, context);
if (targetCorePropertyData.isAlias()) {
targetDeclarativeData->setPendingBindingBit(_bindingTarget, property->coreIndex);
}
}
-
- sharedState->allCreatedBindings.push(qmlBinding);
- qmlBinding->m_mePtr = &sharedState->allCreatedBindings.top();
}
return true;
}