From 06a376d014865a95d3667221523b1b50f33f485c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 19 Feb 2012 18:55:34 +0200 Subject: [PATCH] BUGFIX: Fix crash when disabling then reenabling RSS --- Changelog | 3 +++ src/rss/rssdownloadrulelist.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 22c4e210a..1bd332965 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Unreleased - Christophe Dumez - v2.9.5 + - BUGFIX: Fix crash when disabling then reenabling RSS + * Sat Feb 18 2012 - Christophe Dumez - v2.9.4 - BUGFIX: qBittorrent does not handle redirection to relative URLs correctly (Closes #919905) - BUGFIX: Cmd+M minimizes main window on Mac OS X (Closes #928216) diff --git a/src/rss/rssdownloadrulelist.cpp b/src/rss/rssdownloadrulelist.cpp index 542f09acd..d3c143620 100644 --- a/src/rss/rssdownloadrulelist.cpp +++ b/src/rss/rssdownloadrulelist.cpp @@ -51,8 +51,10 @@ RssDownloadRuleList* RssDownloadRuleList::instance() void RssDownloadRuleList::drop() { - if(m_instance) + if(m_instance) { delete m_instance; + m_instance = 0; + } } RssDownloadRule RssDownloadRuleList::findMatchingRule(const QString &feed_url, const QString &article_title) const