Summary: | leaks in BidiRun::operator new seen while running WebKit unit tests | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Geoffrey Garen <ggaren> | ||||
Component: | Layout and Rendering | Assignee: | Geoffrey Garen <ggaren> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P1 | ||||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Geoffrey Garen
2007-02-24 10:55:35 PST
Created attachment 13363 [details]
patch
I'd like Mitz or Hyatt to take a look at this.
Comment on attachment 13363 [details]
patch
Translation of this insulting ChangeLog:
+ The ownership model in bidi.cpp is the stuff of legend.
"I don't understand line layout."
+ A seemingly random assortment of functions allocates BidiRuns and puts them in a global data
+ structure.
"I don't understand line layout."
+ Another seemingly random assortment of functions uses the BidiRuns
+ in the global data structure.
"I don't understand line layout."
+ Anybody calling these functions is responsible
+ for knowing when runs may be allocated and when they may be used, and
+ calling deleteBidiRuns() at the appropriate time.
+
"In extremely obscure cases that don't come up on the Web, we happen to leak. But I'll insult the whole
model because it's an easy target."
Seriously, that display:compact leaks is hardly call for all this drama. It's an obscure unused feature that other browsers don't even implement. That it has bugs is utterly unsurprising and not even high priority.
(In reply to comment #2) > "In extremely obscure cases that don't come up on the Web, we happen to leak. bidiReorderCharacters() leaks *every time you paint* a list box or a file upload widget. That's a recent regression that was introduced under my not-so-watchful eye, and I thank Geoff for spotting it :-) Comment on attachment 13363 [details]
patch
r=me
(In reply to comment #3) > (In reply to comment #2) > > "In extremely obscure cases that don't come up on the Web, we happen to leak. > > bidiReorderCharacters() leaks *every time you paint* a list box or a file > upload widget. That's a recent regression that was introduced under my > not-so-watchful eye, and I thank Geoff for spotting it :-) > So it's just a regression and not some systemic flaw. Committed revision 19843. |