diff --git a/Source/RMG/Thread/RomSearcherThread.cpp b/Source/RMG/Thread/RomSearcherThread.cpp index 6b3802a4..92aba506 100644 --- a/Source/RMG/Thread/RomSearcherThread.cpp +++ b/Source/RMG/Thread/RomSearcherThread.cpp @@ -21,6 +21,12 @@ RomSearcherThread::RomSearcherThread(QObject *parent) : QThread(parent) RomSearcherThread::~RomSearcherThread(void) { + // kill the thread when we're running + if (this->isRunning()) + { + this->terminate(); + this->wait(); + } } void RomSearcherThread::SetDirectory(QString directory)