incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl
Date Wed, 20 Jun 2012 13:41:16 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120038

Armin Le Grand <Armin.Le.Grand@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
                 CC|                            |Armin.Le.Grand@me.com
         Resolution|---                         |FIXED

--- Comment #3 from Armin Le Grand <Armin.Le.Grand@me.com> ---
ALG: Good find, a SvtCTLOptions incarnation is holded. It points to a
refcounted, single incarnation which will not be able to be freed and it's
refcount will not be correct. Instead of deleting the new created instance, I
opted to just use a local constant variable, e.g.:

    const SvtCTLOptions aCTLOptions;

This cannot be forgotten to be deleted, also 'const as const can' is applied.
Comitted as r1352098. Thanks for the patch!

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

Mime
View raw message