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

Memory leak in QFuture<void>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • 5.0.0
    • 4.8.2
    • Core: QtConcurrent
    • None
    • Windows XP, Visual Studio 2010
    • 731ba8ed08f80644b403556638c7f6229e678ebe (qt5) 17bea1689abc695d88f13cd15f73b0a59fcffdff (qt4 attempt) 8ef339ed2fed66646f458c60b2e0e7ac560dad06 (qt4 attempt revert)

    Description

      A memory leak has been detected when QFutureWatcher<void> is used. It seems that the memory for the associated QFuture for keeping the results is not released. No memory leak is detected when QFutureWatcher is used with the actual data type. Run the attached test program: there are 5 allocations but only 4 deallocations. When "QFutureWatcher<Storage> watcher" is used instead the code runs fine.

      Attachments

        1. main.cpp
          0.3 kB
        2. main.cpp
          2 kB
        3. QfutureTest.pro
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            jrahola Jussi Rahola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes