Commit 6d7d35fa authored by Steffen Pankratz's avatar Steffen Pankratz

- fixed memory leak

Memory allocated by 'new[]' should be deallocated by 'delete[]'.
parent a813fee3
......@@ -131,7 +131,7 @@ bool MainWindow::ReadPit(QFile *file)
file->close();
bool success = currentPitData.Unpack(buffer);
delete buffer;
delete[] buffer;
if (!success)
currentPitData.Clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment