[gxml: 13/18] Document.vala: close the Xml.TextReader and Xml.SaveCtxt to free memory
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml: 13/18] Document.vala: close the Xml.TextReader and Xml.SaveCtxt to free memory
- Date: Tue, 18 Jun 2013 18:15:03 +0000 (UTC)
commit 2b6a39cb3bb47ec4be20b0b107001e72794aaf77
Author: Richard Schwarting <aquarichy gmail com>
Date: Sun Jun 9 18:24:29 2013 -0400
Document.vala: close the Xml.TextReader and Xml.SaveCtxt to free memory
gxml/Document.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gxml/Document.vala b/gxml/Document.vala
index e78fd6b..af08c2e 100644
--- a/gxml/Document.vala
+++ b/gxml/Document.vala
@@ -349,6 +349,7 @@ namespace GXml {
reader.read ();
reader.expand ();
Xml.Doc *doc = reader.current_doc ();
+ reader.close ();
this.from_libxml2 (doc);
}
@@ -426,6 +427,7 @@ namespace GXml {
&box, null, 0);
ctxt->save_doc (this.xmldoc);
ctxt->flush ();
+ ctxt->close ();
}
/* Public Methods */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]