aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-03-08 16:02:50 +0100
committerLars Knoll <lars.knoll@qt.io>2018-03-08 16:25:46 +0000
commit2b740574449373fb8901d57667309778c32424dd (patch)
tree9ad55ca5b6ebf490b86df659460c6ac2de5cdf1b /src/qml/qml/qqmlproperty.cpp
parentf514451cc2e3610e160b5dc8ccd1e390730ecc67 (diff)
Clean up memory leaks in tests
A call to QQmlComponent::create() transfer ownership of the created object to the caller. Many tests forgot to delete the object or only deleted it manually if all tests passed. The simplest way to avoid leaks this way is to store the returned value in a QScopedPointer. Change-Id: I6173f440eddedd4f3eab5026f710602a263246c9 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
0 files changed, 0 insertions, 0 deletions