forked from qt-creator/qt-creator
Utils: Fix bad condition on iterator end
Detected by Coverity.
Amends c1b1842c48
.
Change-Id: Ie0233aab33317e286722dec7066d11dfc2a11a06
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ae86a6a4bc
commit
cabba52a89
@@ -49,7 +49,7 @@ static void deleteStreamer(FileStreamHandle handle)
|
||||
{
|
||||
QMutexLocker locker(&s_mutex);
|
||||
auto it = s_fileStreamers.find(handle);
|
||||
if (it != s_fileStreamers.end())
|
||||
if (it == s_fileStreamers.end())
|
||||
return;
|
||||
if (QThread::currentThread() == it->second->thread()) {
|
||||
delete it->second;
|
||||
|
Reference in New Issue
Block a user