mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
lock before accessing global metatype data in QDeclarativeMetaType::isModule()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3d5b081081
commit
98794ab4d6
1 changed files with 1 additions and 0 deletions
|
@ -718,6 +718,7 @@ bool QDeclarativeMetaType::isModule(const QByteArray &module, int versionMajor,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QReadLocker lock(metaTypeDataLock());
|
||||||
QDeclarativeMetaTypeData *data = metaTypeData();
|
QDeclarativeMetaTypeData *data = metaTypeData();
|
||||||
QDeclarativeMetaTypeData::ModuleInfoHash::Iterator it = data->modules.find(module);
|
QDeclarativeMetaTypeData::ModuleInfoHash::Iterator it = data->modules.find(module);
|
||||||
return it != data->modules.end()
|
return it != data->modules.end()
|
||||||
|
|
Loading…
Add table
Reference in a new issue