Suppress JavaScriptCore 'LEAK' messages at application exit
authorKent Hansen <kent.hansen@nokia.com>
Fri, 10 Aug 2012 10:28:11 +0000 (12:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 13 Aug 2012 07:32:42 +0000 (09:32 +0200)
commitd1cf1cc364463c196dfc99f04328755a67476569
tree9e06c81279dd5c0d5f3e91952275f139194c40dc
parent87857bd080668e7c249f9da1c9f1e24d030d6f1a
Suppress JavaScriptCore 'LEAK' messages at application exit

In debug mode, if a QScriptEngine was never destroyed, JavaScriptCore
would output a message like

LEAK: 120 Structure

on stderr at exit.
This is not terribly helpful to users; also, it's not common for Qt
classes to produce such output. Since JavaScriptCore's only usage of
the logging facility is for reporting these "leaks", we can disable
logging altogether.

Task-number: QTBUG-18201
Change-Id: Id598bd1f48129d821a954cc49d8e3ab715d78426
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/3rdparty/javascriptcore/JavaScriptCore/wtf/RefCountedLeakCounter.cpp
src/script/script.pro