Permalink
Browse files

Fix memory leak in MNV NetTree. Coverity 1026723

  • Loading branch information...
stuartm committed Jun 4, 2013
1 parent 63e45d8 commit b298d7dfdc1c8e1f25cd445847c33d37664acdd4
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythnetvision/mythnetvision/nettree.cpp
@@ -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)

0 comments on commit b298d7d

Please sign in to comment.