From 6811abd403c1726126361762feee7572069963e6 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 25 Jan 2015 20:07:03 +0200 Subject: [PATCH] Added SERVCONF dtor. --- stglibs/srvconf.lib/include/stg/servconf.h | 1 + stglibs/srvconf.lib/servconf.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/stglibs/srvconf.lib/include/stg/servconf.h b/stglibs/srvconf.lib/include/stg/servconf.h index bb5491fe..6bf33ddb 100644 --- a/stglibs/srvconf.lib/include/stg/servconf.h +++ b/stglibs/srvconf.lib/include/stg/servconf.h @@ -243,6 +243,7 @@ class SERVCONF { public: SERVCONF(); + ~SERVCONF(); void SetServer(const char * server); void SetPort(uint16_t port); diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 1b13de6d..2f4afaba 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -110,6 +110,11 @@ SERVCONF::SERVCONF() parser = XML_ParserCreate(NULL); } //----------------------------------------------------------------------------- +SERVCONF::~SERVCONF() +{ +XML_ParserFree(parser); +} +//----------------------------------------------------------------------------- void SERVCONF::SetServer(const char * server) { nt.SetServer(server); -- 2.44.2