Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
4.8.2
-
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.