Permalink
Browse files

use xmlFree everywhere

  • Loading branch information...
1 parent 72839c0 commit 1937be2ce7c80427b89fa0e0de546849b23e1049 @polotek polotek committed Oct 18, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/html_parser.cc
  2. +1 −1 src/xml_document.cc
  3. +1 −1 src/xml_parser.cc
View
@@ -9,7 +9,7 @@ inline v8::Handle<v8::Value>
BuildDoc(xmlDoc *doc, v8::Handle<v8::Array> errors) {
v8::HandleScope scope;
if (doc == NULL) {
- xmlFreeDoc(doc);
+ xmlFree(doc);
xmlError *error = xmlGetLastError();
if (error) {
return v8::ThrowException(XmlSyntaxError::BuildSyntaxError(error));
View
@@ -158,7 +158,7 @@ XmlDocument::New(const v8::Arguments& args) {
}
XmlDocument::~XmlDocument() {
- xmlFreeDoc(xml_obj);
+ xmlFree(xml_obj);
UpdateV8Memory();
}
View
@@ -10,7 +10,7 @@ inline v8::Handle<v8::Value>
BuildDoc(xmlDoc *doc, v8::Persistent<v8::Array> jsErrArray) {
v8::HandleScope scope;
if (!doc) {
- xmlFreeDoc(doc);
+ xmlFree(doc);
xmlError *error = xmlGetLastError();
if (error) {
return v8::ThrowException(XmlSyntaxError::BuildSyntaxError(error));

0 comments on commit 1937be2

Please sign in to comment.