Browse Source

fixed garbage leak

Darren Ranalli 16 years ago
parent
commit
6fb3aa5afc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/showbase/HTMLTree.py

+ 2 - 2
direct/src/showbase/HTMLTree.py

@@ -6,8 +6,8 @@ class HTMLTree(ET.ElementTree):
         ET.ElementTree.__init__(self, root)
 
         head = ET.SubElement(root, 'HEAD')
-        title = ET.SubElement(head, 'TITLE')
-        title.text = title
+        titleTag = ET.SubElement(head, 'TITLE')
+        titleTag.text = title
 
         body = ET.SubElement(root, 'BODY')