Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15
-
33a846a4d36ec339f8ddea08641ec02f2723a202 (qt/qttools/dev) ff81116cb967edc6707fe62217ad6a701d4d8d1f (qt/qttools/5.15)
Description
In mainwindow.cpp, MainWindow::adToPhraseBook, a new Phrase is allocated on the heap. If later on the QMessageBox::information("Add to phrase book", ...) confirmation is canceled, then 'phrase' is not added to the hash, and the pointer variable goes out of scope without being deleted.
Coverity issue: https://scan3.coverity.com/reports.htm#v42553/p10113/fileInstanceId=32688635&defectInstanceId=8978285&mergedDefectId=22122
Attachments
Issue Links
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-83914 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
298496,2 | Plug memory leak when user cancels adding phrase to phrasebook | 5.15 | qt/qttools | Status: MERGED | +2 | 0 |
298928,4 | Plug memory leak when user cancels adding phrase to phrasebook | dev | qt/qttools | Status: MERGED | +2 | 0 |