tst_qanimationgroup: fix memleaks
Silences asan. Pick-to: 6.3 6.2 5.15 Change-Id: I4995d9a6f0d4bb617fbb82b68289f7ad1ec0e96b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
9f713e8d25
commit
682831a00c
|
|
@ -290,7 +290,8 @@ void tst_QAnimationGroup::setParentAutoAdd()
|
|||
|
||||
void tst_QAnimationGroup::beginNestedGroup()
|
||||
{
|
||||
QAnimationGroup *parent = new QParallelAnimationGroup();
|
||||
QParallelAnimationGroup group;
|
||||
QAnimationGroup *parent = &group;
|
||||
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
if (i & 1) {
|
||||
|
|
@ -347,7 +348,8 @@ void tst_QAnimationGroup::addChildTwice()
|
|||
|
||||
void tst_QAnimationGroup::loopWithoutStartValue()
|
||||
{
|
||||
QAnimationGroup *parent = new QSequentialAnimationGroup();
|
||||
QSequentialAnimationGroup group;
|
||||
QAnimationGroup *parent = &group;
|
||||
QObject o;
|
||||
o.setProperty("ole", 0);
|
||||
QCOMPARE(o.property("ole").toInt(), 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue