Closed
Bug 215159
Opened 22 years ago
Closed 22 years ago
nsViewManager::CreateDisplayList leaks hash keys
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: roc)
References
()
Details
(Keywords: memory-leak)
Attachments
(1 file)
802 bytes,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
Loading http://www.w3.org/Style/CSS/ I noticed that
nsViewManager::CreateDisplayList leaks hash keys. The following line is
misusing the nsHashtable API:
mMapPlaceholderViewToZTreeNode.Put(new nsVoidKey(aView), aResult);
nsHashtable::Put clones the key (and if it weren't deprecated we probably ought
to make it take a |const nsHashKey&|. The code you really want is:
nsVoidKey key(aView);
mMapPlaceholdeViewToZTreeNode.Put(&key, aResult);
Assignee | ||
Comment 1•22 years ago
|
||
oops!
Assignee | ||
Comment 2•22 years ago
|
||
obvious patch
Assignee | ||
Updated•22 years ago
|
Attachment #129242 -
Flags: superreview?(dbaron)
Attachment #129242 -
Flags: review?(dbaron)
Reporter | ||
Updated•22 years ago
|
Attachment #129242 -
Flags: superreview?(dbaron)
Attachment #129242 -
Flags: superreview+
Attachment #129242 -
Flags: review?(dbaron)
Attachment #129242 -
Flags: review+
Comment 3•22 years ago
|
||
Isn´t this fixed?
http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/view/src/nsViewManager.cpp
3.300 roc+%cs.cmu.edu Aug 12 08:56 Bug 213303. Allow events to be sent to
views which are totally clipped out. r+sr=dbaron,a=brendan. Patch by
nielsen@memberwebs.com.
3.299 roc+%cs.cmu.edu Aug 5 18:42 Bug 215159. Fix memory leak in
nsViewManager. r+sr=dbaron
Version 3.300 doesn´t fix Bug 213303, must be a typo, as that bug is invalid.
Assignee | ||
Comment 4•22 years ago
|
||
Yeah, I checked this in and forgot to mark FIXED.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•