Document percieved memory leak
authorAlan Alpert <aalpert@blackberry.com>
Mon, 1 Apr 2013 18:07:18 +0000 (11:07 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 1 May 2013 17:53:51 +0000 (19:53 +0200)
commit329a3462903c60876be3449c82d0bc16b72bf402
treed88f44a9433f9ee659e0af02c5b7619edcecd50c
parentd88f6f2345c2a2c7f93ebf73ac9a90edad0c9979
Document percieved memory leak

QJSEngine doesn't call collectGarbage upon deletion, because this
operation can be expensive and in most cases the JS engine is deleted
during application shutdown, when the memory can be deallocated cheaper.

This can lead to an apparent memory leak if multiple engines are created
and destroyed in the same process. Documenting how to avoid this.

Change-Id: Ie02cb8bedc8821e0bb04dfa52a5a2d65b4b085a3
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
src/qml/qml/qqmlengine.cpp
src/qml/qml/v8/qjsengine.cpp