diff --git a/src/corelib/thread/qfutureinterface.cpp b/src/corelib/thread/qfutureinterface.cpp index 9fbecd095fd..7bee6dd72e7 100644 --- a/src/corelib/thread/qfutureinterface.cpp +++ b/src/corelib/thread/qfutureinterface.cpp @@ -77,7 +77,7 @@ void QtPrivate::watchContinuationImpl(const QObject *context, QSlotObjectBase *s auto watcherMutex = std::make_shared(); const auto destroyWatcher = [watcherMutex, watcher]() mutable { QMutexLocker lock(watcherMutex.get()); - watcher->deleteLater(); + delete watcher; }; // ### we're missing a convenient way to `QObject::connect()` to a `QSlotObjectBase`...