Permalink
Browse files

Fix leak in MythNetVision. Coverity defect 703767

  • Loading branch information...
1 parent 7809398 commit dfb717c7686b0323669b59defa2888afe409ac60 @stuartm stuartm committed Jun 4, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 mythplugins/mythnetvision/mythnetvision/netsearch.cpp
View
11 mythplugins/mythnetvision/mythnetvision/netsearch.cpp
@@ -766,13 +766,14 @@ void NetSearch::slotItemChanged()
{
MythUIButtonListItem *item = m_siteList->GetItemCurrent();
- ResultItem *res = new ResultItem(item->GetText(), QString(), QString(),
- QString(), QString(), QString(), QString(), QDateTime(),
- 0, 0, -1, QString(), QStringList(), QString(), QStringList(), 0, 0, QString(),
- 0, QStringList(), 0, 0, 0);
+ ResultItem res(item->GetText(), QString(), QString(),
+ QString(), QString(), 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)

0 comments on commit dfb717c

Please sign in to comment.