From cb3b3bc8dd321a44eaad5e3c6933a7b5c4d2ff16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Mon, 2 Jul 2012 11:34:48 +0200 Subject: [PATCH] [api] Delete `this.chunks` on `destroy` --- lib/buffered-stream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/buffered-stream.js b/lib/buffered-stream.js index e733fb4..d7a6197 100644 --- a/lib/buffered-stream.js +++ b/lib/buffered-stream.js @@ -118,6 +118,7 @@ BufferedStream.prototype.end = function () { BufferedStream.prototype.destroy = function () { this.readable = false; this.writable = false; + delete this.chunks; }; BufferedStream.prototype.close = function () {