Author: tack
Date: Tue Apr 25 20:03:59 2006
New Revision: 1496

Modified:
   trunk/metadata/src/misc/xmlinfo.py

Log:
Free xml doc


Modified: trunk/metadata/src/misc/xmlinfo.py
==============================================================================
--- trunk/metadata/src/misc/xmlinfo.py  (original)
+++ trunk/metadata/src/misc/xmlinfo.py  Tue Apr 25 20:03:59 2006
@@ -68,11 +68,13 @@
         # Silence parse errors
         ctxt.setErrorHandler(lambda *args: None, None)
         ctxt.parseDocument()
-        tag = ctxt.doc().children.name
+        doc = ctxt.doc()
+        tag = doc.children.name
         if tag in XML_TAG_INFO:
             self.type = XML_TAG_INFO[tag]
         else:
             self.type = 'XML file'
+        doc.freeDoc()
 
 
 factory.register( 'text/xml', ('xml', 'fxd', 'html', 'htm'),


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to