Fix memory leaks

This commit is contained in:
Jonas Kvinge
2019-07-22 20:53:05 +02:00
parent 2df21081a1
commit bd78e8c275
33 changed files with 186 additions and 74 deletions

View File

@@ -32,6 +32,14 @@
LyricsProviders::LyricsProviders(QObject *parent) : QObject(parent) {}
LyricsProviders::~LyricsProviders() {
while (!lyrics_providers_.isEmpty()) {
delete lyrics_providers_.firstKey();
}
}
void LyricsProviders::AddProvider(LyricsProvider *provider) {
{