libxml++ r184 - in trunk: . libxml++
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: libxml++ r184 - in trunk: . libxml++
- Date: Fri, 5 Dec 2008 21:22:14 +0000 (UTC)
Author: murrayc
Date: Fri Dec 5 21:22:13 2008
New Revision: 184
URL: http://svn.gnome.org/viewvc/libxml++?rev=184&view=rev
Log:
2008-12-05 Murray Cumming <murrayc murrayc com>
* libxml++/schema.cc: release_underlying(): Use xmlSchemaFree()
to avoid a leak, as suggested by Balazs Tirpak. Bug #312216.
Modified:
trunk/ChangeLog
trunk/libxml++/schema.cc
Modified: trunk/libxml++/schema.cc
==============================================================================
--- trunk/libxml++/schema.cc (original)
+++ trunk/libxml++/schema.cc Fri Dec 5 21:22:13 2008
@@ -65,6 +65,10 @@
if(embedded_doc_ && impl_ && impl_->doc->_private)
{
delete (Document*) impl_->doc->_private;
+
+ if(impl)
+ xmlSchemaFree(impl_);
+
impl_ = 0;
embedded_doc_ = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]