diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-02-14 04:25:15 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-02-14 04:36:57 (GMT) |
commit | 3bc6f8d8dd630cd0298e27fc4b7430d2bf73a232 (patch) | |
tree | 55b7099a9044efb8182323fd67841b95616d82f7 /tests/auto/qinputcontext | |
parent | 2855782a45b08aedbed960125514fdd9663ff1c8 (diff) | |
download | Qt-3bc6f8d8dd630cd0298e27fc4b7430d2bf73a232.zip Qt-3bc6f8d8dd630cd0298e27fc4b7430d2bf73a232.tar.gz Qt-3bc6f8d8dd630cd0298e27fc4b7430d2bf73a232.tar.bz2 |
Don't leak ScopeChainNode's
Create a sub-scope of the global scope chain, rather than a completely new scope
chain. Leaks are difficult to autotest, but an autotest for
QScriptDeclarativeClass::pushCleanContext() was added to ensure its behavior doesn't
regress. To reproduce the leak (prior to this change) use:
while (true) {
QScriptDeclarativeClass::pushCleanContext(&engine);
engine.popContext();
}
Change-Id: I41ac61ea1664da569eb329c8276f2a0bb6d2f1f7
Task-number: QTBUG-17166
Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/qinputcontext')
0 files changed, 0 insertions, 0 deletions