Fix a memory leak in Song (dynamically allocated error list)

Make the member Song::m_errors a static member to prevent memory leaks.
The member was allocated dynamically when an instance of a Song was
created but was not deleted in the destructor.
This commit is contained in:
Michael Gregorius
2017-07-27 19:07:19 +02:00
parent 9d92ea2cca
commit 017fb4b089
2 changed files with 6 additions and 7 deletions

View File

@@ -367,7 +367,7 @@ private:
bool m_loadingProject;
QList<QString> * m_errors;
QList<QString> m_errors;
PlayModes m_playMode;
PlayPos m_playPos[Mode_Count];