You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/06/20 07:34:13 UTC

[Bug 120038] New: There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

https://issues.apache.org/ooo/show_bug.cgi?id=120038

          Priority: P3
            Bug ID: 120038
          Assignee: ooo-issues@incubator.apache.org
           Summary: There is a memory leak in function
                    SfxObjectShell::CreatePreviewMetaFile_Impl
          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

Steps to reproduce the defect:
1) Launch Aoo3.4
2) New a odp file, save it, close it

Defect : SfxObjectShell::CreatePreviewMetaFile_Impl

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

zhang jianfang <zh...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |120975

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

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

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

--- Comment #3 from Armin Le Grand <Ar...@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.

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

Yan Ji <ya...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |121366

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

[Bug 120038] [From Symphony] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

Shenfeng Liu <li...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liushenf@gmail.com
            Summary|There is a memory leak in   |[From Symphony] There is a
                   |function                    |memory leak in function
                   |SfxObjectShell::CreatePrevi |SfxObjectShell::CreatePrevi
                   |ewMetaFile_Impl             |ewMetaFile_Impl

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

Yan Ji <ya...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #5 from Yan Ji <ya...@gmail.com> ---
Since last SVT(r1400866) shows there is no memory leak, so close this defect as
resolved.

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

ChaoHuang <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78397|                            |review?
              Flags|                            |

--- Comment #2 from ChaoHuang <ch...@gmail.com> ---
Created attachment 78397
  --> https://issues.apache.org/ooo/attachment.cgi?id=78397&action=edit
for file "main/sfx2/source/doc/objcont.cxx"

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

ChaoHuang <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|not determined              |AOO 3.5.0

--- Comment #4 from ChaoHuang <ch...@gmail.com> ---
Suggest to put it into AOO 3.5.0 release

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

[Bug 120038] There is a memory leak in function SfxObjectShell::CreatePreviewMetaFile_Impl

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120038

--- Comment #1 from ChaoHuang <ch...@gmail.com> ---
The object typed SvtCTLOptions will be created to detect LanguageType. But it
does not be released. So it is a memory leak.

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