summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
authorlionelc <megabigbug@yahoo.fr>2010-09-01 14:16:38 +0200
committerlionelc <megabigbug@yahoo.fr>2010-09-01 14:16:38 +0200
commitf48e97d045adb97512994e0cf1b4d8f99f456de6 (patch)
treef64573795bc7fd75f6f9ecc0a101e02dfc35d168 /src/search
parentThis should improve adblock retrieving by NOT asking for SSL confirmations (diff)
downloadrekonq-f48e97d045adb97512994e0cf1b4d8f99f456de6.tar.xz
fix memory leak when delete current job in opensearchmanager
Diffstat (limited to 'src/search')
-rw-r--r--src/search/opensearchmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/search/opensearchmanager.cpp b/src/search/opensearchmanager.cpp
index 9670a6a2..c2ac1ddb 100644
--- a/src/search/opensearchmanager.cpp
+++ b/src/search/opensearchmanager.cpp
@@ -114,6 +114,7 @@ void OpenSearchManager::addOpenSearchEngine(const KUrl &url, const QString &titl
{
disconnect(m_currentJob);
m_currentJob->kill();
+ delete m_currentJob;
}
m_jobData.clear();
@@ -149,7 +150,8 @@ void OpenSearchManager::requestSuggestion(const QString &searchText)
if (m_currentJob)
{
disconnect(m_currentJob);
- m_currentJob->kill();
+ m_currentJob->kill();
+ delete m_currentJob;
}
m_jobData.clear();