Summary: | Fix leaks in PassRefPtr | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Maciej Stachowiak <mjs> | ||||||
Component: | WebKit Misc. | Assignee: | Maciej Stachowiak <mjs> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Maciej Stachowiak
2005-12-20 02:43:11 PST
Created attachment 5172 [details]
fix the problems
Created attachment 5177 [details]
fix problem with last attachment
First version had a bug and caused more leaks. This version is better.
Comment on attachment 5177 [details]
fix problem with last attachment
I think pass should take a const RefPtr<T>& rather than a RefPtr<T> to avoid
reference count churn.
r=me
OK, fixed it to take a const& |