From 7635fe51f7ee3fc7f46f94d60c2e32872f1d861e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 28 Oct 2010 17:09:00 +0000 Subject: [PATCH] BUGFIX: Fix possible crash on clicking a RSS article (closes #575624) --- Changelog | 1 + src/rss_imp.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 9bb053e28..47d71a1bf 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Unreleased - Christophe Dumez - v2.4.9 - BUGFIX: Fix crash when pressing enter in save path field in torrent addition dialog - BUGFIX: Fix crash when deleting a torrent with no metadata (closes #667528) + - BUGFIX: Fix possible crash on clicking a RSS article (closes #575624) - BUGFIX: Correctly display the hash of torrents with no metadata - BUGFIX: Elide status bar text if it is too wide diff --git a/src/rss_imp.cpp b/src/rss_imp.cpp index 4345dfb26..b2d8aa8c2 100644 --- a/src/rss_imp.cpp +++ b/src/rss_imp.cpp @@ -485,7 +485,7 @@ void RSSImp::refreshTextBrowser() { // Stop displaying previous news if necessary if(listStreams->currentFeed() == listStreams->getUnreadItem()) { if(previous_news) { - delete listNews->takeTopLevelItem(listNews->indexOfTopLevelItem(previous_news)); + delete previous_news; } previous_news = item; }