Browse Source

Fix possible crash on clicking a RSS article

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
071801fee7
  1. 2
      src/rss/rss_imp.cpp

2
src/rss/rss_imp.cpp

@ -489,7 +489,7 @@ void RSSImp::refreshTextBrowser() { @@ -489,7 +489,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;
}

Loading…
Cancel
Save