diff --git a/src/core/generation.cpp b/src/core/generation.cpp index 1d6a8d6f..1189ab72 100644 --- a/src/core/generation.cpp +++ b/src/core/generation.cpp @@ -192,7 +192,7 @@ void EngineGeneration::setWatchingFiles(bool watching) { } } else { if (this->watcher != nullptr) { - delete this->watcher; + this->watcher->deleteLater(); this->watcher = nullptr; } }