[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] re: xmlRemoveRef/xmlAddRef + validation weirdness



duh... forgot the attachements, sorry for the inconvenience :p

-- 
Gabriel Forté <gab chx-labs org>

diff -Nur libxml2-2.6.22.orig/valid.c libxml2-2.6.22/valid.c
--- libxml2-2.6.22.orig/valid.c	2005-09-03 14:16:18.000000000 +0200
+++ libxml2-2.6.22/valid.c	2005-12-06 12:52:12.000000000 +0100
@@ -3108,7 +3108,7 @@
 
     /*If the list is empty then remove the list entry in the hash */
     if (xmlListEmpty(ref_list))
-        xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator)
+        xmlHashRemoveEntry(table, ID, (xmlHashDeallocator)
         xmlFreeRefList);
     xmlFree(ID);
     return(0);

Attachment: test-removeref.tar.gz
Description: application/tar-gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]