Add qmlClearRegisteredTypes Function
authorAlan Alpert <aalpert@rim.com>
Thu, 24 Jan 2013 22:07:29 +0000 (14:07 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 7 May 2013 17:41:28 +0000 (19:41 +0200)
commit9b5a55101d7c519446c1cf3706a235dea81ad4de
tree8f7201f04f8e593c8e00fd4d293d2d28e1a655ab
parent223313479bf8ec80158ba0f6cba4dd5e74d92718
Add qmlClearRegisteredTypes Function

Registered types are stored in a global static variable, not on an
engine instance. For applications managing multiple engines over their
lifetime, there needs to be a way to clear the existing types so they
can register new ones and avoid memory leaks.

Task-Number: QTBUG-28572
Change-Id: Ic70a4dd1e29d99399b21fb42eaf10d4a52bf2adf
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
20 files changed:
src/qml/doc/src/qmlfunctions.qdoc
src/qml/qml/qqml.h
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlengine_p.h
src/qml/qml/qqmlimport.cpp
src/qml/qml/qqmlimport_p.h
src/qml/qml/qqmlmetatype.cpp
src/qml/qml/qqmlmetatype_p.h
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
tests/manual/qmltypememory/README [new file with mode: 0644]
tests/manual/qmltypememory/TestPlugin/plugin.cpp [new file with mode: 0644]
tests/manual/qmltypememory/TestPlugin/plugin.pro [new file with mode: 0644]
tests/manual/qmltypememory/TestPlugin/qmldir [new file with mode: 0644]
tests/manual/qmltypememory/TestType.qml [new file with mode: 0644]
tests/manual/qmltypememory/main.cpp [new file with mode: 0644]
tests/manual/qmltypememory/main.qml [new file with mode: 0644]
tests/manual/qmltypememory/qmldir [new file with mode: 0644]
tests/manual/qmltypememory/qmltypememory.pro [new file with mode: 0644]
tests/manual/qmltypememory/testdriver.cpp [new file with mode: 0644]
tests/manual/qmltypememory/testdriver.h [new file with mode: 0644]