https://bz.apache.org/ooo/show_bug.cgi?id=128539

          Issue ID: 128539
        Issue Type: DEFECT
           Summary: a rtl_UnicodeToTextContext is wrongly freed with
                    rtl_destroyTextToUnicodeConverter() instead of
                    rtl_destroyTextToUnicodeContext()
           Product: General
           Version: 3.3.0 or older (OOo)
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

http://opengrok.openoffice.org/xref/trunk/main/vcl/source/gdi/impfont.cxx?r=43ad51ff#553

The "rtl_UnicodeToTextContext aCvtContext" variable is freed with
rtl_destroyTextToUnicodeConverter() instead of
rtl_destroyTextToUnicodeContext().

The reason this isn't caught by the compiler is because both types are void *:
typedef void* rtl_TextToUnicodeConverter;
typedef void* rtl_TextToUnicodeContext;

The consequence is a memory leak.

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

Reply via email to