Skip to content

Commit f58dd52

Browse files
committed
fix minor memory leak
1 parent 710d1eb commit f58dd52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/cli/src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,10 @@ EngineMatch* parseMatch(const QStringList& args, QObject* parent)
467467
for (auto it = map2.constBegin(); it != map2.constEnd(); ++it)
468468
qInfo() << qUtf8Printable(it.key()) << "\n "
469469
<< qUtf8Printable(it.value());
470-
return 0;
470+
471+
delete match;
472+
delete tournament;
473+
return nullptr;
471474
}
472475
tournament->setResultFormat(value.toString().left(256).trimmed());
473476
}

0 commit comments

Comments
 (0)