mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Fixed memory leak in RSS parser
This commit is contained in:
@@ -495,6 +495,8 @@ class RssStream : public QObject{
|
|||||||
RssItem * item = new RssItem(property);
|
RssItem * item = new RssItem(property);
|
||||||
if(!itemAlreadyExists(item->getHash()))
|
if(!itemAlreadyExists(item->getHash()))
|
||||||
listItem.append(item);
|
listItem.append(item);
|
||||||
|
else
|
||||||
|
detete item;
|
||||||
}
|
}
|
||||||
property = property.nextSibling().toElement();
|
property = property.nextSibling().toElement();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user