Skip to content

Commit

Permalink
Fix another memory leak in MNV NetTree. Same as the last one just in …
Browse files Browse the repository at this point in the history
…a different place. Coverity 1026723
  • Loading branch information
stuartm committed Jun 7, 2013
1 parent f7ac5f7 commit ce9e95c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythnetvision/mythnetvision/nettree.cpp
Expand Up @@ -1084,13 +1084,13 @@ void NetTree::slotItemChanged()
thumb = node->GetData().toString();
}

ResultItem *res = new ResultItem(title, QString(), QString(),
ResultItem res = ResultItem(title, QString(), QString(),
QString(), thumb, QString(), QString(), 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 (m_thumbImage)
Expand Down

0 comments on commit ce9e95c

Please sign in to comment.