diff --git a/src/base/searchengine.cpp b/src/base/searchengine.cpp index 1eba4fab1..23ef24363 100644 --- a/src/base/searchengine.cpp +++ b/src/base/searchengine.cpp @@ -84,7 +84,7 @@ SearchEngine::SearchEngine() SearchEngine::~SearchEngine() { - qDeleteAll(m_plugins.values()); + qDeleteAll(m_plugins); cancelSearch(); } diff --git a/src/gui/properties/trackerlist.cpp b/src/gui/properties/trackerlist.cpp index 1c4e10e9c..cfb88379c 100644 --- a/src/gui/properties/trackerlist.cpp +++ b/src/gui/properties/trackerlist.cpp @@ -234,7 +234,7 @@ void TrackerList::moveSelectionDown() void TrackerList::clear() { - qDeleteAll(m_trackerItems.values()); + qDeleteAll(m_trackerItems); m_trackerItems.clear(); m_DHTItem->setText(COL_STATUS, ""); m_DHTItem->setText(COL_SEEDS, "");