Commit ead5b067 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: fix memory leak

Reviewed-by: Kai Koehne
parent a534c271
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment