Go to file
João Abecasis 301f7b780c Don't check reference count in QLinkedList<T>::free
This is a private function that was always* called after d->ref.deref()
returned false to free the linked list. Still, it needlessly verified
the reference count to be zero.

The check is thus replaced with a Q_ASSERT to check the invariant on
debug builds.

*This commit also fixes an issue where free would be called on a block
that hadn't been deref'ed, thus leaking the nodes. Since this was in an
exception handling block, and happens before any code has a chance to
reference the block the explicit deref is skipped in that case.

Change-Id: Ie73c174d0a1b84f297bf5531e45f829e66a46346
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-01-17 10:17:01 +01:00
bin Revert "Fixed qtmodule-configtests on Windows" 2012-01-13 04:03:59 +01:00
config.tests Remove ICD plugin for bearer. 2012-01-10 07:12:41 +01:00
dist Fixes examples/tests to use qinptr in QTcpServer::incomingConnection. 2012-01-13 20:55:00 +01:00
doc/src Fixes examples/tests to use qinptr in QTcpServer::incomingConnection. 2012-01-13 20:55:00 +01:00
examples Fixes examples/tests to use qinptr in QTcpServer::incomingConnection. 2012-01-13 20:55:00 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Added mkspecs for WEC7 platform builder and armv4i HW. 2012-01-13 13:23:20 +01:00
qmake qmake wasn't handling spaces in names when dealing with extra installs. 2012-01-14 05:36:54 +01:00
src Don't check reference count in QLinkedList<T>::free 2012-01-17 10:17:01 +01:00
tests Rename QArrayData::AllocateOption to AllocationOption 2012-01-16 20:40:16 +01:00
tools Don't use check as an identifier in the configure app. 2012-01-10 16:12:06 +01:00
util Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Don't enable V8's snapshot feature when building inside scratchbox for ARM 2012-01-11 15:59:51 +01:00
configure.exe Add a new QT_NO_SSL feature macro. 2012-01-06 11:19:23 +01:00
header.BSD Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.FDL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.LGPL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.LGPL-ONLY Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Ensure qmodule.pri is installed. 2011-11-23 00:12:03 +01:00
sync.profile Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00