From f1f6b365881dfd9f777be8a2142d86ba95b4600c Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Wed, 2 Nov 2022 16:56:29 +0800 Subject: [PATCH] Fix#146819 the app-data-service crashes when the destructor is executed. --- ukui-search-app-data-service/pending-app-info-queue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ukui-search-app-data-service/pending-app-info-queue.cpp b/ukui-search-app-data-service/pending-app-info-queue.cpp index 8213383..48d5442 100644 --- a/ukui-search-app-data-service/pending-app-info-queue.cpp +++ b/ukui-search-app-data-service/pending-app-info-queue.cpp @@ -101,6 +101,8 @@ PendingAppInfoQueue::PendingAppInfoQueue(QObject *parent) : QThread(parent) PendingAppInfoQueue::~PendingAppInfoQueue() { + this->quit(); + this->wait(); if (m_minProcessTimer) { delete m_minProcessTimer; }