Fix memory leak in QFuture
authorMorten Sørvig <msorvig@trolltech.com>
Tue, 5 May 2009 12:29:44 +0000 (14:29 +0200)
committerMorten Sørvig <msorvig@trolltech.com>
Tue, 5 May 2009 12:29:44 +0000 (14:29 +0200)
commit8be2b24705da4bce99b3a3d588aedcfe2eb3f886
tree76dd284f996bcade6ddb04d26cdf44baac7a561c
parentc03a4544fa3c1400fef3f1ad847bc3c65e660de7
Fix memory leak in QFuture
The held results were not cleared by QFutureInterface::operator=(QFutureInterface)
Add call to resultStore().clear(), similar to the destructor.
This needs to be done in the header since we know the template type here.

Task-number: 252208
Reviewed-by: brad
src/corelib/concurrent/qfutureinterface.h
tests/auto/qtconcurrentmap/tst_qtconcurrentmap.cpp