[MOD] Make the cleanup *do a thing*.

This commit is contained in:
LDA 2024-06-23 21:14:07 +02:00
commit 10e140e2a2
5 changed files with 62 additions and 2 deletions

View file

@ -2,6 +2,7 @@
#include <Cytoplasm/Memory.h>
#include <Cytoplasm/Str.h>
#include <Cytoplasm/Log.h>
XMLElement *
XMLCreateTag(char *name)

View file

@ -1,5 +1,8 @@
#include <XML.h>
#include <Cytoplasm/Log.h>
#include <Cytoplasm/Str.h>
#include <string.h>
XMLElement *
@ -72,6 +75,10 @@ XMLDecode(Stream *stream, bool autofree)
}
break;
case XML_LEXER_DATA:
if (!peek())
{
break;
}
top = XMLCreateText(event->data);
XMLAddChild(peek(), top);
break;