mirror of
https://github.com/latentPrion/libspinscale.git
synced 2026-04-17 22:44:25 +00:00
Qutex: fix use after free
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user