mirror of
https://github.com/latentPrion/libspinscale.git
synced 2026-06-24 11:58:33 +00:00
Qutex: fix use after free
This commit is contained in:
+2
-2
@@ -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