Hi Tora,

tora - Takamichi Akiyama schrieb:
Hi,

3.1.1/OOO310_m19/filter/source/pdf/pdfexport.cxx has a function

sal_Bool PDFExport::Export(...)
{
    VCLXDevice* pXDevice = new VCLXDevice;

There seems no "delete pXDevice;" there. Is that intended?

this pointer is assigned to a Reference object a few lines later,
which will take care of proper refcounting and destruction:

aRenderOptions[ 0 ].Value <<= Reference< awt::XDevice >( pXDevice );

Although I must admit, that this is done only in case of pOut != NULL.
In case of pOut == NULL, there doesn't seem to be correct destruction
afterwards.

Putting Philipp on Cc to review this.

With best regards
Kai


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@gsl.openoffice.org
For additional commands, e-mail: dev-h...@gsl.openoffice.org

Reply via email to