incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120073] New: There is a memory leak in function SvXMLImportItemMapper::PutXMLValue
Date Mon, 25 Jun 2012 03:01:23 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120073

          Priority: P3
            Bug ID: 120073
          Assignee: ooo-issues@incubator.apache.org
           Summary: There is a memory leak in function
                    SvXMLImportItemMapper::PutXMLValue
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: chao.dev.h@gmail.com
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: performance

Code snippet
-------------------------------------------------------------------------
        case RES_FRAMEDIR:
        {
            const XMLPropertyHandler* pWritingModeHandler =
                XMLPropertyHandlerFactory::CreatePropertyHandler(
                    XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT );
            if( pWritingModeHandler != NULL )
            {
                Any aAny;
                bOk = pWritingModeHandler->importXML( rValue, aAny,
                                                      rUnitConverter );
                if( bOk )
                    bOk = rItem.PutValue( aAny );
            }
        }
        break;

The object pWritingModeHandler is created in function
XMLPropertyHandlerFactory::CreatePropertyHandler on heap. But it will not be
released. So it is a memory leak.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message