mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Fix memory leak introduced by changeset 3915e2d2c748 (bug 503080). r=mrbkap, no bug#.
--HG-- extra : rebase_source : 6cb42950ce67950f0c694bd32d90ccaa53c7a7d4
This commit is contained in:
parent
1d19e53394
commit
5458c0f694
@ -253,6 +253,8 @@ JSScope::destroy(JSContext *cx, JSScope *scope)
|
||||
#endif
|
||||
if (scope->table)
|
||||
JS_free(cx, scope->table);
|
||||
if (scope->emptyScope)
|
||||
scope->emptyScope->drop(cx, NULL);
|
||||
|
||||
LIVE_SCOPE_METER(cx, cx->runtime->liveScopeProps -= scope->entryCount);
|
||||
JS_RUNTIME_UNMETER(cx->runtime, liveScopes);
|
||||
|
Loading…
Reference in New Issue
Block a user