incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120668] New: SdrModel, the member objects created in SdrModel::ImpCreateTables() leaks
Date Thu, 23 Aug 2012 01:31:32 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120668

          Priority: P3
            Bug ID: 120668
          Assignee: ooo-issues@incubator.apache.org
           Summary: SdrModel, the member objects created in
                    SdrModel::ImpCreateTables() leaks
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: zhangjf@apache.org
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: performance

In api
void SdrModel::ImpCreateTables()
{
    // der Writer hat seinen eigenen ColorTable
    if (!bExtColorTable) pColorTable=new
XColorTable(aTablePath,(XOutdevItemPool*)pItemPool);
    pDashList    =new XDashList    (aTablePath,(XOutdevItemPool*)pItemPool);
    pLineEndList =new XLineEndList (aTablePath,(XOutdevItemPool*)pItemPool);
    pHatchList   =new XHatchList   (aTablePath,(XOutdevItemPool*)pItemPool);
    pGradientList=new XGradientList(aTablePath,(XOutdevItemPool*)pItemPool);
    pBitmapList  =new XBitmapList  (aTablePath,(XOutdevItemPool*)pItemPool);
}

Next time, when calling SdrModel::Setxxx(), for ex,
void            SetColorTable(XColorTable* pTable)       { pColorTable=pTable;
}

The object is overwritten without free.

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

Mime
View raw message