Skip to content

Commit

Permalink
Fix memory leak in MNV NetTree. Coverity 1026723
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jun 4, 2013
1 parent 63e45d8 commit b298d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythnetvision/mythnetvision/nettree.cpp
Expand Up @@ -1041,13 +1041,13 @@ void NetTree::slotItemChanged()
}
else if (site)
{
ResultItem *res = new ResultItem(site->GetTitle(), QString(), site->GetDescription(),
ResultItem res = ResultItem(site->GetTitle(), QString(), site->GetDescription(),
site->GetURL(), site->GetImage(), QString(), site->GetAuthor(), QDateTime(),
0, 0, -1, QString(), QStringList(), QString(), QStringList(), 0, 0, QString(),
0, QStringList(), 0, 0, 0);

MetadataMap metadataMap;
res->toMap(metadataMap);
res.toMap(metadataMap);
SetTextFromMap(metadataMap);

if (!site->GetImage().isEmpty() && m_thumbImage)
Expand Down

0 comments on commit b298d7d

Please sign in to comment.