[*] Mitigate reported issue: QTBUG-120762 (use after free)
Change-Id: Idafa182c76fe69e66c13389253481d1c9c4d8716
This commit is contained in:
parent
7b8a03106c
commit
a5b41489e5
@ -408,9 +408,9 @@ void QSemaphore::release(int n)
|
|||||||
{
|
{
|
||||||
const auto locker = qt_scoped_lock(d->mutex);
|
const auto locker = qt_scoped_lock(d->mutex);
|
||||||
d->avail += n;
|
d->avail += n;
|
||||||
}
|
|
||||||
d->cond.notify_all();
|
d->cond.notify_all();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns the number of resources currently available to the
|
Returns the number of resources currently available to the
|
||||||
|
Loading…
Reference in New Issue
Block a user