From 47241db789950110d0f7a3729e73a5c927810b4d Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 13 Dec 2014 08:48:24 +0000 Subject: [PATCH] Let V8 garbage collect the Buffer earlier #138 --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 58a7e4f7..6d849a96 100755 --- a/index.js +++ b/index.js @@ -506,6 +506,8 @@ Sharp.prototype._sharp = function(callback) { }); } } + // A copy is taken of the Buffer so let V8 garbage collect ours + this.options.bufferIn = null; }; /*