QML: Only release types if they aren't referenced anymore
authorUlf Hermann <ulf.hermann@qt.io>
Wed, 8 Jun 2016 15:32:32 +0000 (17:32 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 7 Oct 2016 07:03:28 +0000 (07:03 +0000)
commit61305c94e51eccdfcba57ff469a407372491d975
treee18a174171023777cfdd56a4304b2895250b9db0
parent7ec9b3ce1cbaaa8d054cebed16b2d9af10542391
QML: Only release types if they aren't referenced anymore

Just checking for references on m_compiledData is not enough. The
actual component can also be referenced. Thus it won't be deleted
on release(), but cannot be found in the type cache anymore.

Task-number: QTBUG-53761
Change-Id: I8567af8e75a078598e4fed31e4717134e1332278
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit 2ac19881f92c94f4e9427bd9ff513210675f259e)

Gbp-Pq: Name qml_only_release_types_if_they_arent_referenced_anymore.patch
src/qml/qml/qqmltypeloader.cpp
tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp