Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15
-
c260c31a441ebae149fccad6d0a9dde68c57b4eb (qt/qttools/dev) 6e65714cac98c2d355c06c10d355e82cfb07aa4b (qt/qttools/5.15)
Description
The domUI object is deleted at the end of the function. If the call to elementWidget fails, then the function returns prematurely without deleting the domUI object.
Should delete explicitly, or use QScopedPointer.
This is reported by coverity at https://scan3.coverity.com/reports.htm#v42553/p10113/fileInstanceId=33001381&defectInstanceId=9019821&mergedDefectId=21962