Skip to content

Commit

Permalink
Merge pull request #24 from vtsvang/support/fix-global-variable-leak
Browse files Browse the repository at this point in the history
Fixed global variable "plist" leak
  • Loading branch information
mreinstein committed Jan 30, 2013
2 parents bc98629 + a040e22 commit 4b96b7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@

exports.parseStringSync = function (xml) {
var doc = new DOMParser().parseFromString(xml);
var plist;
if (doc.documentElement.nodeName !== 'plist') {
throw new Error('malformed document. First element should be <plist>');
}
Expand Down

0 comments on commit 4b96b7c

Please sign in to comment.