From 8db37875445e3fc664b79261f14c222a152709d1 Mon Sep 17 00:00:00 2001 From: sbarman Date: Thu, 7 Jul 2011 11:56:10 -0700 Subject: [PATCH] fix bug with unref var --- pdf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index c41031ecc..d41a98c27 100644 --- a/pdf.js +++ b/pdf.js @@ -4719,6 +4719,7 @@ var IndexedCS = (function() { return this.base.getRgb(c); }, getRgbBuffer: function indexcs_getRgbBuffer(input) { + var base = this.base; var numComps = base.numComps; var lookup = this.lookup; var length = input.length; @@ -4732,7 +4733,7 @@ var IndexedCS = (function() { } } - return this.base.getRgbBuffer(baseBuf); + return base.getRgbBuffer(baseBuf); } }; return constructor;