Closed
Bug 379433
Opened 19 years ago
Closed 19 years ago
PangoItem and GList memory leaks in gfxPangoFonts
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha5
People
(Reporter: karlt, Assigned: karlt)
References
Details
(Keywords: memory-leak)
Attachments
(2 files, 1 obsolete file)
|
2.08 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.11 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
gfxPangoFontGroup::CreateGlyphRunsItemizing gets a GList (items) of PangoItems
from pango_itemize but only frees the empty GList at the end of items.
This patch frees each PangoItem and the entire GList.
Attachment #263429 -
Flags: superreview?(vladimir)
Attachment #263429 -
Flags: review?(vladimir)
| Assignee | ||
Comment 1•19 years ago
|
||
A separate patch for similar leaks in gfxPangoFont::GetMetrics.
I assume the early return paths in GetSize and GetMetrics are not meant to be
hit?
Attachment 263238 [details] [diff] in bug 357637 removes the calls to pango_itemize in GetSize
GetMetrics so I include this patch separately as it won't be needed if the
357637 patch is landed.
Comment on attachment 263429 [details] [diff] [review]
patch to CreateGlyphRunsItemizing
r+sr=me
Attachment #263429 -
Flags: superreview?(vladimir)
Attachment #263429 -
Flags: superreview+
Attachment #263429 -
Flags: review?(vladimir)
Attachment #263429 -
Flags: review+
Comment 3•19 years ago
|
||
Don't we need a pango_item_free() before the 'continue' as well?
| Assignee | ||
Comment 4•19 years ago
|
||
Yes, thanks Mats. Added the extra pango_item_free.
Attachment #263429 -
Attachment is obsolete: true
Attachment #263490 -
Flags: review?(vladimir)
Comment on attachment 263490 [details] [diff] [review]
patch to CreateGlyphRunsItemizing v2
Whoops, yes
Attachment #263490 -
Flags: review?(vladimir) → review+
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [checkin needed]
Comment 6•19 years ago
|
||
checked in "patch to CreateGlyphRunsItemizing v2":
Checking in gfxPangoFonts.cpp;
/cvsroot/mozilla/gfx/thebes/src/gfxPangoFonts.cpp,v <-- gfxPangoFonts.cpp
new revision: 1.70; previous revision: 1.69
done
Is this FIXED or does something need to be done about the other patch?
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha5
| Assignee | ||
Comment 7•19 years ago
|
||
Thanks for the checkin. "patch to CreateGlyphRunsItemizing v2" was the checkin needed.
The remainder will be FIXED by the current patch in bug 357637.
We won't need "patch to GetMetrics" unless there is a problem with the patch in bug 357637.
Depends on: 357637
| Assignee | ||
Comment 8•19 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•