Cleared some temporary variables after use

To reduce memory consumption
This commit is contained in:
Jeremy Ruston 2012-01-08 10:24:09 +00:00
parent 89cac4c054
commit bc16400ef2
3 changed files with 10 additions and 3 deletions

View file

@ -29,7 +29,9 @@ var JavaScriptParseTree = function(tree) {
JavaScriptParseTree.prototype.render = function() {
this.output = [];
this.renderSubTree(this.tree);
return this.output.join("");
var r = this.output.join("");
this.output = null;
return r;
};
// Render a subtree of the parse tree to an array of fragments of JavaScript source code