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
Attachments
For Gerrit Dashboard: QTBUG-83984 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
299464,3 | Plug memory leak when returning prematurely | dev | qt/qttools | Status: MERGED | +2 | 0 |
299466,2 | Plug memory leak when returning prematurely | 5.15 | qt/qttools | Status: MERGED | +2 | 0 |