From a3e90e1c057212b825f1f2fda94ba7d8e438f441 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 9 Feb 2010 21:22:09 +0000 Subject: [PATCH] Fix memory leak in RSS --- Changelog | 1 + src/rss.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Changelog b/Changelog index d74fbbea1..25b1d30bc 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Unreleased - Christophe Dumez - v2.1.5 - BUGFIX: Fix actions on selected torrents (non-selected torrents could be affected) - BUGFIX: Link against boost and ssl to fix issues with gold linker + - BUGFIX: Fix memory leak in RSS * Mon Feb 8 2010 - Christophe Dumez - v2.1.4 - BUGFIX: Fix file prioritizing in a torrent diff --git a/src/rss.cpp b/src/rss.cpp index 1817df79e..22c83dcf3 100644 --- a/src/rss.cpp +++ b/src/rss.cpp @@ -391,6 +391,8 @@ RssStream::RssStream(RssFolder* parent, RssManager *rssmanager, Bittorrent *BTSe RssItem *rss_item = RssItem::fromHash(this, item); if(rss_item->isValid()) { (*this)[rss_item->getTitle()] = rss_item; + } else { + delete rss_item; } } }