]> granicus.if.org Git - libexpat/commitdiff
Fix for bug #916228.
authorKarl Waclawek <kwaclaw@users.sourceforge.net>
Mon, 15 Mar 2004 00:34:12 +0000 (00:34 +0000)
committerKarl Waclawek <kwaclaw@users.sourceforge.net>
Mon, 15 Mar 2004 00:34:12 +0000 (00:34 +0000)
expat/lib/xmlparse.c

index 1cc9a2a0942acfab3dbfeba011c2e3f52d82326f..01c28f96860b0b233bcaff90680e61d8182981b1 100644 (file)
@@ -5400,9 +5400,7 @@ dtdCreate(const XML_Memory_Handling_Suite *ms)
   if (p == NULL)
     return p;
   poolInit(&(p->pool), ms);
-#ifdef XML_DTD
   poolInit(&(p->entityValuePool), ms);
-#endif /* XML_DTD */
   hashTableInit(&(p->generalEntities), ms);
   hashTableInit(&(p->elementTypes), ms);
   hashTableInit(&(p->attributeIds), ms);
@@ -5449,9 +5447,7 @@ dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms)
   hashTableClear(&(p->attributeIds));
   hashTableClear(&(p->prefixes));
   poolClear(&(p->pool));
-#ifdef XML_DTD
   poolClear(&(p->entityValuePool));
-#endif /* XML_DTD */
   p->defaultPrefix.name = NULL;
   p->defaultPrefix.binding = NULL;
 
@@ -5492,9 +5488,7 @@ dtdDestroy(DTD *p, XML_Bool isDocEntity, const XML_Memory_Handling_Suite *ms)
   hashTableDestroy(&(p->attributeIds));
   hashTableDestroy(&(p->prefixes));
   poolDestroy(&(p->pool));
-#ifdef XML_DTD
   poolDestroy(&(p->entityValuePool));
-#endif /* XML_DTD */
   if (isDocEntity) {
     ms->free_fcn(p->scaffIndex);
     ms->free_fcn(p->scaffold);