Browse Source

Fixed memory leak in ObjectTest.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
6e4523f162
  1. 4
      src/Test/ObjectTest.cpp

4
src/Test/ObjectTest.cpp

@ -55,8 +55,8 @@ void ObjectTest::scene() {
Object* childOne = new Object(&scene);
Object* childTwo = new Object(childOne);
Object* orphan = new Object;
Object* childOfOrphan = new Object(orphan);
Object orphan;
Object* childOfOrphan = new Object(&orphan);
QVERIFY(childTwo->scene() == &scene);
QVERIFY(childOfOrphan->scene() == nullptr);

Loading…
Cancel
Save