aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/animation
diff options
context:
space:
mode:
authorAmanda Hamblin-Trué <amanda.hamblin-true@qt.io>2023-07-27 14:28:28 +0200
committerAmanda Hamblin-Trué <amanda.hamblin-true@qt.io>2023-08-01 10:49:14 +0200
commit1c34d3e81a5df5f7b9d0ec4927559f220d0e331e (patch)
tree792d508bb1e9759861126425aae113eed82de918 /tests/auto/qml/animation
parent92c7745945b660a6968f345e0e99f23faf9e84ac (diff)
tst_qpacketprotocol: Clean up memory management
Task-number: QTBUG-115222 Change-Id: If1ebb1e8cdd9172eb9aabb934389b5d8411759f1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/animation')
-rw-r--r--tests/auto/qml/animation/qanimationgroupjob/tst_qanimationgroupjob.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qml/animation/qanimationgroupjob/tst_qanimationgroupjob.cpp b/tests/auto/qml/animation/qanimationgroupjob/tst_qanimationgroupjob.cpp
index cac9581803..c885e63d3f 100644
--- a/tests/auto/qml/animation/qanimationgroupjob/tst_qanimationgroupjob.cpp
+++ b/tests/auto/qml/animation/qanimationgroupjob/tst_qanimationgroupjob.cpp
@@ -236,7 +236,7 @@ void tst_QAnimationGroupJob::addChildTwice()
{
QAbstractAnimationJob *subGroup;
QAbstractAnimationJob *subGroup2;
- auto *parent = new QSequentialAnimationGroupJob();
+ auto parent = std::make_unique<QSequentialAnimationGroupJob>();
subGroup = new QAbstractAnimationJob;
parent->appendAnimation(subGroup);
@@ -266,7 +266,6 @@ void tst_QAnimationGroupJob::addChildTwice()
QCOMPARE(parent->children()->first(), subGroup2);
QCOMPARE(parent->children()->last(), subGroup);
- delete parent;
}
QTEST_MAIN(tst_QAnimationGroupJob)