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)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Sun, 11 Sep 2016 12:30:31 +0000 (12:30 +0000)
commit060d05babe498cb465c375b6ff4043962094a394
tree8dd21d55f5655d5bbbc6447ea37358fd698ae326
parentf352b33bed1386241016f360be78a817206ed400
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