Permalink
Browse files

Fix memory leak

  • Loading branch information...
1 parent a832585 commit ad00fdd3831640631765584a394e5f7e43e95753 @hamishmack hamishmack committed Dec 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 rts/rts-trampoline.js
@@ -798,6 +798,7 @@ $Thunk.prototype = {
// }
_this.result = res;
_this.live = [];
+ _this.evaluateOnce = null;
_this.evaluate = function () { return new $tr_Result(_this.result); };
return new $tr_Result(_this.result);
}, []);
@@ -859,6 +860,7 @@ $Data.prototype = {
// }
_this.v = res;
_this.notEvaluated = false;
+ _this.evaluateOnce = null;
_this.evaluate = function () { return new $tr_Result(_this); };
return new $tr_Result(_this);
}, []);

0 comments on commit ad00fdd

Please sign in to comment.