Commit 2122dbf4 authored by Xiyue Deng's avatar Xiyue Deng

* Fix section in doc-base references.

* Add 10_document_memory_leak_fix.patch for possible memory leak.
  (Closes: #469809)
parent 2ff56998
......@@ -16,8 +16,11 @@ libxml++2.6 (2.20.0-2) unstable; urgency=low
cdbs to >= 0.4.51 to avoid empty debug package bug.
* Update watch version to 3, and drop 'debian uupdate' as not
necessarily required.
* Fix section in doc-base references.
* Add 10_document_memory_leak_fix.patch for possible memory leak.
(Closes: #469809)
-- Deng Xiyue <manphiz-guest@users.alioth.debian.org> Thu, 28 Feb 2008 18:27:38 +0800
-- Deng Xiyue <manphiz-guest@users.alioth.debian.org> Fri, 07 Mar 2008 17:34:03 +0800
libxml++2.6 (2.20.0-1) unstable; urgency=low
......
......@@ -2,7 +2,7 @@ Document: libxml++2.6-manual
Title: Short tutorial of libxml++
Author: Christophe de Vienne <cdevienne@gmail.com>
Abstract: A short tutorial to start using libxml++.
Section: Apps/Programming
Section: Programming/C++
Format: HTML
Index: /usr/share/doc/libxml++2.6-doc/docs/manual/html/index.html
......
......@@ -2,7 +2,7 @@ Document: libxml++2.6-reference
Title: Reference of libxml++
Author: Christophe de Vienne <cdevienne@gmail.com>
Abstract: Reference Manual for Libxml++
Section: Apps/Programming
Section: Programming/C++
Format: HTML
Index: /usr/share/doc/libxml++2.6-doc/docs/reference/2.20/html/index.html
......
diff -urN libxml++-2.20.0/libxml++/document.cc libxml++-2.20.0~/libxml++/document.cc
--- libxml++-2.20.0/libxml++/document.cc 2007-08-29 16:22:51.000000000 +0800
+++ libxml++-2.20.0~/libxml++/document.cc 2008-03-07 16:51:17.000000000 +0800
@@ -137,11 +137,16 @@
Document::Init::Init()
{
- xmlInitParser(); //Not always necessary, but necessary for thread safety.
- xmlRegisterNodeDefault(on_libxml_construct);
- xmlDeregisterNodeDefault(on_libxml_destruct);
- xmlThrDefRegisterNodeDefault(on_libxml_construct);
- xmlThrDefDeregisterNodeDefault(on_libxml_destruct);
+ xmlInitParser(); //Not always necessary, but necessary for thread safety.
+ xmlRegisterNodeDefault(on_libxml_construct);
+ xmlDeregisterNodeDefault(on_libxml_destruct);
+ xmlThrDefRegisterNodeDefault(on_libxml_construct);
+ xmlThrDefDeregisterNodeDefault(on_libxml_destruct);
+}
+
+Document::Init::~Init()
+{
+ xmlCleanupParser(); //as per xmlInitParser(), or memory leak will happen.
}
Document::Init Document::init_;
diff -urN libxml++-2.20.0/libxml++/document.h libxml++-2.20.0~/libxml++/document.h
--- libxml++-2.20.0/libxml++/document.h 2007-09-11 16:11:24.000000000 +0800
+++ libxml++-2.20.0~/libxml++/document.h 2008-03-07 17:10:31.000000000 +0800
@@ -53,6 +53,7 @@
{
public:
Init();
+ virtual ~Init();
};
friend class DomParser;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment