diff --git a/src/rss.h b/src/rss.h index 815c46c78..0a76a9d35 100644 --- a/src/rss.h +++ b/src/rss.h @@ -378,14 +378,9 @@ class RssManager{ void removeStream(RssStream* stream){ short index = hasStream(stream); if(index != -1){ - unsigned int streamListSize = streamList.size(); - for(unsigned int i=0; igetUrl() == stream->getUrl()){ - delete streamList.takeAt(i); - } - } + delete streamList.takeAt(index); streamListUrl.removeAt(index); - streamListAlias.removeAt(index); + streamListAlias.removeAt(index); } }