From b5dee56f9de3ce8e0845112980c71a5c3347ef2d Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:29:06 -0500 Subject: [PATCH] PDF.js version 1.0.456 --- bower.json | 2 +- build/pdf.combined.js | 12 ++++++++++-- build/pdf.js | 12 ++++++++++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 24 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index b6943c5d5..9887775ae 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.454", + "version": "1.0.456", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 3ac77ed98..7186dc8ae 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.454'; -PDFJS.build = 'e97efaa'; +PDFJS.version = '1.0.456'; +PDFJS.build = 'a7800c2'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5497,6 +5497,14 @@ var WebGLUtils = (function WebGLUtilsClosure() { } function cleanup() { + if (smaskCache && smaskCache.canvas) { + smaskCache.canvas.width = 0; + smaskCache.canvas.height = 0; + } + if (figuresCache && figuresCache.canvas) { + figuresCache.canvas.width = 0; + figuresCache.canvas.height = 0; + } smaskCache = null; figuresCache = null; } diff --git a/build/pdf.js b/build/pdf.js index a58c7c2af..b20884c4c 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.454'; -PDFJS.build = 'e97efaa'; +PDFJS.version = '1.0.456'; +PDFJS.build = 'a7800c2'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5541,6 +5541,14 @@ var WebGLUtils = (function WebGLUtilsClosure() { } function cleanup() { + if (smaskCache && smaskCache.canvas) { + smaskCache.canvas.width = 0; + smaskCache.canvas.height = 0; + } + if (figuresCache && figuresCache.canvas) { + figuresCache.canvas.width = 0; + figuresCache.canvas.height = 0; + } smaskCache = null; figuresCache = null; } diff --git a/build/pdf.worker.js b/build/pdf.worker.js index f6b2eab93..df3915e3e 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.454'; -PDFJS.build = 'e97efaa'; +PDFJS.version = '1.0.456'; +PDFJS.build = 'a7800c2'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 3bd7bb554..dac45effc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.454", + "version": "1.0.456", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",