a094bf5a89
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> |
||
---|---|---|
.. | ||
.gitignore | ||
externaltests.cpp | ||
externaltests.h | ||
externaltests.pri | ||
forwarddeclared.cpp | ||
forwarddeclared.h | ||
nontracked.cpp | ||
nontracked.h | ||
qsharedpointer.pro | ||
tst_qsharedpointer.cpp | ||
wrapper.cpp | ||
wrapper.h |