diff --git a/src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp index f7c3b1efdbd050b3782cba75c40ffa166e44fe4d..2275afb04ef82e19a438f5d4ece4758013803539 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp @@ -256,7 +256,7 @@ bool PropertyMetaInfo::isValueType() const throw InvalidMetaInfoException(__LINE__, Q_FUNC_INFO, __FILE__); } - QDeclarativeValueType *valueType(QDeclarativeValueTypeFactory::valueType(variantTypeId())); + QScopedPointer<QDeclarativeValueType> valueType(QDeclarativeValueTypeFactory::valueType(variantTypeId())); return valueType; }