Fix memory leak introduced by changeset 3915e2d2c748 (bug 503080). r=mrbkap, no bug#.

--HG--
extra : rebase_source : 6cb42950ce67950f0c694bd32d90ccaa53c7a7d4
This commit is contained in:
Jason Orendorff 2009-07-21 21:55:27 -05:00
parent 1d19e53394
commit 5458c0f694

View File

@ -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);