Fix for memory leak in ResultStore
authorChristian Strømme <christian.stromme@digia.com>
Tue, 16 Oct 2012 09:34:00 +0000 (11:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 22:58:11 +0000 (00:58 +0200)
commit6039179373f7552c2a711b06a7d69b9ca9d2b175
treed8eddb1c9384c36e2ea2c4f4f27649e4c7bf18b1
parent8003fd6d5b12d51bfeb4fd5cd1f5c1b303c19df6
Fix for memory leak in ResultStore

In ResultStoreBase::addResults() it possible that the ResultItem we
create is invalid (filter-mode enabled). Since an invalid ResultItem
won't have any result data, we need to make sure that we don't allocate
any data for it.

Task-number: QTBUG-27224
Change-Id: Ic99b191db0e9dd4e29b64911f87d90a8148bb7a5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/corelib/thread/qresultstore.h