incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120072] New: There is a memory leak in function SvXMLExportItemMapper::QueryXMLValue
Date Mon, 25 Jun 2012 02:50:39 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120072

          Priority: P3
            Bug ID: 120072
          Assignee: ooo-issues@incubator.apache.org
           Summary: There is a memory leak in function
                    SvXMLExportItemMapper::QueryXMLValue
          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:
        {
            Any aAny;
            bOk = rItem.QueryValue( aAny );
            if( bOk )
            {
                const XMLPropertyHandler* pWritingModeHandler =
                    XMLPropertyHandlerFactory::CreatePropertyHandler(
                        XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT );
                OUString sValue;
                bOk = pWritingModeHandler->exportXML( sValue, aAny,
                                                      rUnitConverter );
                if( bOk )
                    aOut.append( sValue );
            }
        }
        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