X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2e4de7bb1dcdf34bce1769c34c7cd42fb64637e2..392a542a849ec49772db0eb237bb064c4f09008d:/stglibs/srvconf.lib/servconf.cpp diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 078466d7..2f4afaba 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -92,7 +92,6 @@ sc->End(el); //----------------------------------------------------------------------------- SERVCONF::SERVCONF() : currParser(NULL), - parseDepth(0), error(0), RecvUserDataCb(NULL), RecvGetUserDataCb(NULL), @@ -111,6 +110,11 @@ SERVCONF::SERVCONF() parser = XML_ParserCreate(NULL); } //----------------------------------------------------------------------------- +SERVCONF::~SERVCONF() +{ +XML_ParserFree(parser); +} +//----------------------------------------------------------------------------- void SERVCONF::SetServer(const char * server) { nt.SetServer(server); @@ -379,7 +383,6 @@ return st_ok; //----------------------------------------------------------------------------- int SERVCONF::Start(const char *el, const char **attr) { -printfd(__FILE__, "<%s>\n", el); currParser->ParseStart(el, attr); return 0; }