diff --git a/frontend/model/search-result-manager.cpp b/frontend/model/search-result-manager.cpp index 91179f2..a8efa63 100644 --- a/frontend/model/search-result-manager.cpp +++ b/frontend/model/search-result-manager.cpp @@ -73,7 +73,7 @@ void ReceiveResultThread::stop() void ReceiveResultThread::run() { - QTimer * m_timer = new QTimer; + QTimer *m_timer = new QTimer; m_timer->setInterval(3000); bool is_empty; while(!isInterruptionRequested()) { @@ -86,7 +86,6 @@ void ReceiveResultThread::run() } if(m_timer->isActive() && m_timer->remainingTime() < 0.01) { this->requestInterruption(); - qWarning()<<"-------------->stopped by itself"; } if(is_empty && !m_timer->isActive()) { m_timer->start(); @@ -96,4 +95,5 @@ void ReceiveResultThread::run() msleep(100); } } + delete m_timer; } diff --git a/libsearch/websearch/web-search-plugin.cpp b/libsearch/websearch/web-search-plugin.cpp index fc411bc..6c2462a 100644 --- a/libsearch/websearch/web-search-plugin.cpp +++ b/libsearch/websearch/web-search-plugin.cpp @@ -40,11 +40,12 @@ void UkuiSearch::WebSearchPlugin::KeywordSearch(QString keyword, DataQueue