diff --git a/ext/jasmine-webkit-specrunner/Runner.cpp b/ext/jasmine-webkit-specrunner/Runner.cpp index 66943a5..e1663a7 100644 --- a/ext/jasmine-webkit-specrunner/Runner.cpp +++ b/ext/jasmine-webkit-specrunner/Runner.cpp @@ -66,7 +66,8 @@ void Runner::loadSpec() QVectorIterator iterator(reportFiles); while (iterator.hasNext()) { - QFile *outputFile = new QFile(iterator.next()); + QString fileName = iterator.next(); + QFile *outputFile = new QFile(fileName); outputFile->open(QIODevice::WriteOnly); outputFiles.enqueue(outputFile); }