diff options
author | lionelc <megabigbug@yahoo.fr> | 2010-09-01 14:16:38 +0200 |
---|---|---|
committer | lionelc <megabigbug@yahoo.fr> | 2010-09-01 14:16:38 +0200 |
commit | f48e97d045adb97512994e0cf1b4d8f99f456de6 (patch) | |
tree | f64573795bc7fd75f6f9ecc0a101e02dfc35d168 | |
parent | This should improve adblock retrieving by NOT asking for SSL confirmations (diff) | |
download | rekonq-f48e97d045adb97512994e0cf1b4d8f99f456de6.tar.xz |
fix memory leak when delete current job in opensearchmanager
-rw-r--r-- | src/search/opensearchmanager.cpp | 4 |
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(); |