From bccdad4b1bbcc718b98482b2e6c5b4b8c2128b1d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 9 Feb 2010 21:20:43 +0000 Subject: [PATCH] - Fix memory leak in rss --- src/rss.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rss.cpp b/src/rss.cpp index 9fcf2ec85..2a50098d5 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; } } }