Don't leak memory in benchmark
authorAaron Kennedy <aaron.kennedy@nokia.com>
Fri, 17 Jun 2011 01:43:09 +0000 (11:43 +1000)
committerAaron Kennedy <aaron.kennedy@nokia.com>
Fri, 17 Jun 2011 01:43:09 +0000 (11:43 +1000)
tests/benchmarks/declarative/binding/tst_binding.cpp

index 5dce36d..70796f6 100644 (file)
@@ -186,7 +186,8 @@ void tst_binding::creation()
     COMPONENT(file, binding);
 
     QBENCHMARK {
-        c.create();
+        QObject *o = c.create();
+        delete o;
     }
 }