Qutex: fix use after free

This commit is contained in:
2026-03-05 19:53:21 -04:00
parent 8af362c791
commit dab5477249

View File

@@ -370,11 +370,11 @@ void Qutex::release()
* *
* Therefore we must always awaken the front item when releas()ing. * Therefore we must always awaken the front item when releas()ing.
*/ */
LockerAndInvokerBase &front = *queue.front(); std::shared_ptr<LockerAndInvokerBase> front = queue.front();
lock.release(); lock.release();
front.awaken(); front->awaken();
} }
} // namespace sscl } // namespace sscl