[*] Mitigate reported issue: QTBUG-120762 (use after free)

Change-Id: Idafa182c76fe69e66c13389253481d1c9c4d8716
This commit is contained in:
Reece Wilson 2024-01-11 17:34:20 +00:00
parent 7b8a03106c
commit a5b41489e5

View File

@ -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