Fix global leaks

This commit is contained in:
Ryan Dahl
2010-12-04 15:20:34 -08:00
parent fbdff52b44
commit a0159b4b29
159 changed files with 461 additions and 458 deletions

View File

@@ -49,7 +49,7 @@ StringDecoder.prototype.write = function(buffer) {
// Figure out if one of the last i bytes of our buffer announces an
// incomplete char.
for (; i > 0; i--) {
c = buffer[buffer.length - i];
var c = buffer[buffer.length - i];
// See http://en.wikipedia.org/wiki/UTF-8#Description