]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/servconf.cpp
Minor fixes in JSON parser.
[stg.git] / stglibs / srvconf.lib / servconf.cpp
index 0ca3028c9e881209cf4d881696c6aedc0ae9a41e..2f4afaba147bc7132d33bddfba5331197b9cb877 100644 (file)
@@ -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);