qt5base-lts/tests/auto
Thiago Macieira a094bf5a89 Don't increase the reference count if dynamic_cast failed
If the dynamic_cast failed in QSharedPointer::dynamicCast or
qSharedPointerDynamicCast, we should avoid creating the QSharedPointer
that shares the weak and strong reference counts. In Qt 5, this does
not imply a leak since the original pointer is stored internally for
deletion. In Qt 4 it implies a leak under certain circumstances, which
this change fixes.

Task-number: QTBUG-28924
Change-Id: Id2de140de4cf676461e14b201ad250c53666b79d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2013-01-04 17:30:19 +01:00
..
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Fix for leak in QFuture 2012-11-01 16:09:29 +01:00
corelib Don't increase the reference count if dynamic_cast failed 2013-01-04 17:30:19 +01:00
dbus DBus: Remove declaration of built-in and automatic metatypes. 2013-01-04 13:20:06 +01:00
gui Fix possible crash in QTextDocument 2013-01-03 16:15:37 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network SSL certificates: blacklist mis-issued Turktrust certificates 2013-01-04 15:19:17 +01:00
opengl add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
other Make textEditTest pass on Windows 8 2013-01-04 13:20:06 +01:00
printsupport Only use the user set page margins for custom paper 2012-10-30 12:53:46 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
testlib Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
tools add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
widgets Fix QGuiApplication::keyboardModifiers() and QGuiApplication::mouseButtons() 2013-01-04 13:20:06 +01:00
xml remove obsolete DEPENDPATH assignments 2012-12-17 14:08:17 +01:00
auto.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00