hello,everybody:
   there is about 8K memory leak in my code below:

                        try
                        {
                                XMLPlatformUtils::Initialize();
                        }
                        catch (const XMLException& toCatch)
                        {
                                LOG4CXX_ERROR(m_logger, "Error during 
initializing XML parser!(" << X(toCatch.getMessage()) << ")" );
                                return;
                        }
                        SAX2XMLReader* parser = 
XMLReaderFactory::createXMLReader();
                        parser->setContentHandler(this);
                        parser->parse(filename);
                        delete(parser);
                        try
                        {
                                XMLPlatformUtils::Terminate();
                        }
                        catch (const XMLException& toCatch)
                        {
                                LOG4CXX_ERROR( m_logger, "Error during 
terminate XML parser!(" << X(toCatch.getMessage()) << ")" );
                                return ;
                        }

 my parser  just do nothing here, but there is about 8K memory leak.
 so i wonder whether i forget to delete something here ?

Reply via email to