]> git.stg.codes - stg.git/commitdiff
Added SERVCONF dtor.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:07:03 +0000 (20:07 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:07:03 +0000 (20:07 +0200)
stglibs/srvconf.lib/include/stg/servconf.h
stglibs/srvconf.lib/servconf.cpp

index bb5491fe63c2f04d13e8abd97632dae36177cb9b..6bf33ddb189288e5daaedfb95c458ace5fe4b510 100644 (file)
@@ -243,6 +243,7 @@ class SERVCONF
 {
 public:
     SERVCONF();
+    ~SERVCONF();
     void SetServer(const char * server);
     void SetPort(uint16_t port);
 
index 1b13de6d1ce4916086a64063474fefaad3c5b356..2f4afaba147bc7132d33bddfba5331197b9cb877 100644 (file)
@@ -110,6 +110,11 @@ SERVCONF::SERVCONF()
 parser = XML_ParserCreate(NULL);
 }
 //-----------------------------------------------------------------------------
+SERVCONF::~SERVCONF()
+{
+XML_ParserFree(parser);
+}
+//-----------------------------------------------------------------------------
 void SERVCONF::SetServer(const char * server)
 {
 nt.SetServer(server);