mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
AdBlockSubscription: Fix leak when reloading subscription
This commit is contained in:
parent
49c028740e
commit
370ddf79ef
@ -116,6 +116,7 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
|
||||
return;
|
||||
}
|
||||
|
||||
qDeleteAll(m_rules);
|
||||
m_rules.clear();
|
||||
|
||||
while (!textStream.atEnd()) {
|
||||
|
Loading…
Reference in New Issue
Block a user