kutils: do not remove all jobs from KSpeech destuctor

if the KSpeech object is stack-allocated then a voice message may be
dispatched and stopped shortly after when the KSpeech object is destroyed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-29 18:27:32 +03:00
parent ee7c852183
commit 2673f025e6

View file

@ -150,7 +150,6 @@ KSpeech::KSpeech(QObject* parent)
KSpeech::~KSpeech() KSpeech::~KSpeech()
{ {
removeAllJobs();
delete d; delete d;
} }