Permalink
Browse files

Merge pull request #8 from storify/master

Leak
  • Loading branch information...
rauchg committed Sep 11, 2012
2 parents 9fa4932 + b13b1af commit 91c2407c39092517703400af73c84a9fe4ac9d23
Showing with 8 additions and 2 deletions.
  1. +7 −1 lib/juice.js
  2. +1 −1 package.json
View
@@ -120,5 +120,11 @@ function juice (html, css, options) {
el.setAttribute('style', style);
});
- return document.innerHTML;
+ var inner = document.innerHTML;
+
+ // free the associated memory
+ // with lazily created parentWindow
+ document.parentWindow.close();
+
+ return inner;
}
View
@@ -8,7 +8,7 @@
]
, "dependencies": {
"cssom": "0.2.3"
- , "jsdom": "0.2.14"
+ , "jsdom": "0.2.15"
, "mootools-slick-parser": "1.3.2"
}
, "devDependencies": {

0 comments on commit 91c2407

Please sign in to comment.