Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20357

Possible memory leaks in standard dialogs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0
    • None
    • 5679d966b396523a1d555a4029e7da05515be2fa 57179745d245529b23ef2088012ecc3fde6e15ba

      I am testing for memory leaks by seeing how the number of allocated heap cells and handles varies with the number of times a use case is repeated. Symbian gives a print of this information at app exit time, eg "C:\sys\bin\standarddialogs.exe exiting with 397 allocated cells, 52 handles".

      In this case I was looking at examples\dialogs\standarddialogs. Deary me, the results are not pretty...

      test result
      QInputDialog::getInt() Leaks
      QInputDialog::getDouble() Leaks
      QInputDialog::getItem() Leaks
      QInputDialog::getText() Leaks, but maybe stabilizing after many repeats
      QColorDialog::getColor() No leaks
      QFontDialog::getFont() Leaks
      QFileDialog::getExistingDirectory() No leaks
      QFileDialog::getOpenFileName() Leaks
      QFileDialog::getOpenFileNames() Leaks
      QFileDialog::getSaveFileName() No leaks
      QMessageBox::critical() Leaks
      QMessageBox::information() Leaks
      QMessageBox::question() Leaks
      QMessageBox::warning() Leaks
      QErrorMessage::showMessage() No leaks

      Where a results is shown as "Leaks", the number of heap cells and handles appears to be increasing linearly with the number of times the test case is run.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mread Murray Read
            mread Murray Read
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes