]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/src/texutils.cpp
Removed check for '\par' at beginning of line that I mistakenly added before
[wxWidgets.git] / utils / tex2rtf / src / texutils.cpp
index 35ff57107ea51fb93607c33ba160406d5df94198..f3c25d42b7bbedecfd3c4686d3f487503306276c 100644 (file)
@@ -432,7 +432,14 @@ void ReadTexReferences(char *filename)
         istr.get(ch);
       }
       section[i] = 0;
+
+      // gt - needed to trick the hash table "TexReferences" into deleting the key 
+      // strings it creates in the Put() function, but not the item that is
+      // created here, as that is destroyed elsewhere.  Without doing this, there
+      // were massive memory leaks
+      TexReferences.DeleteContents(TRUE);
       TexReferences.Put(label, new TexRef(label, file, section, sectionName));
+      TexReferences.DeleteContents(FALSE);
     }
   }
 }