1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

AdBlockSubscription: Fix leak when reloading subscription

This commit is contained in:
David Rosca 2018-03-16 21:04:53 +01:00
parent 49c028740e
commit 370ddf79ef
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -116,6 +116,7 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
return; return;
} }
qDeleteAll(m_rules);
m_rules.clear(); m_rules.clear();
while (!textStream.atEnd()) { while (!textStream.atEnd()) {