Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

- fixed memory leak

Memory allocated by 'new[]' should be deallocated by 'delete[]'.
parent a813fee3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ bool MainWindow::ReadPit(QFile *file)
	file->close();

	bool success = currentPitData.Unpack(buffer);
	delete buffer;
	delete[] buffer;

	if (!success)
		currentPitData.Clear();