From 370ddf79ef89baff8198d48ad3d71b6f3f88d03e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 16 Mar 2018 21:04:53 +0100 Subject: [PATCH] AdBlockSubscription: Fix leak when reloading subscription --- src/lib/adblock/adblocksubscription.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/adblock/adblocksubscription.cpp b/src/lib/adblock/adblocksubscription.cpp index b1ed6a986..9361f6fe7 100644 --- a/src/lib/adblock/adblocksubscription.cpp +++ b/src/lib/adblock/adblocksubscription.cpp @@ -116,6 +116,7 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules) return; } + qDeleteAll(m_rules); m_rules.clear(); while (!textStream.atEnd()) {