Closed
Bug 227963
Opened 22 years ago
Closed 22 years ago
[gtk2] native window code leaks
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: blizzard, Assigned: blizzard)
References
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
2.00 KB,
patch
|
iamawalrus
:
review+
bryner
:
superreview+
asa
:
approval1.6+
|
Details | Diff | Splinter Review |
There's a leak in the native gtk2 window code. This causes a lot of problems
during destruction. Will attach a patch in a moment.
| Assignee | ||
Comment 1•22 years ago
|
||
Should be using an nsCOMPtr<> as well as using getter_AddRefs().
| Assignee | ||
Updated•22 years ago
|
Attachment #137146 -
Flags: superreview?(bryner)
Attachment #137146 -
Flags: review?(robin.lu)
seems like the leak comes from the java plugin checking code. Add related people
to the cc list.
Robin,
> seems like the leak comes from the java plugin checking code
Could you elaborate your speculation?
Comment on attachment 137146 [details] [diff] [review]
patch
It is a little strange that we have to handle the plug_removed. I have checked
the code of gtksocket, seems like they need to provide a default value as true
to the result before emit the signal plug_remove. It could be a bug of
gtksocket. Anyway, this patch is OK to me.
Attachment #137146 -
Flags: review?(robin.lu) → review+
Wouldn't it be nicer if AddRef called from nsIPluginInstance::GetPeer function?
| Assignee | ||
Comment 7•22 years ago
|
||
I talked to own about the default for plug_removed because I thought it was odd
as well. He says that this was the behaviour of gtk 1.2, so it's preserved in
the gtk2 code to maintain compatibility.
Status: NEW → ASSIGNED
| Assignee | ||
Updated•22 years ago
|
Assignee: peterlubczynski-bugs → blizzard
Status: ASSIGNED → NEW
Updated•22 years ago
|
Attachment #137146 -
Flags: superreview?(bryner) → superreview+
| Assignee | ||
Comment 8•22 years ago
|
||
Comment on attachment 137146 [details] [diff] [review]
patch
Good solid leak fix for 1.6 to let people write gtk2 plugins.
Attachment #137146 -
Flags: approval1.6?
Comment 9•22 years ago
|
||
Comment on attachment 137146 [details] [diff] [review]
patch
a=asa (on behalf of drivers) for checkin to Mozilla 1.6
Attachment #137146 -
Flags: approval1.6? → approval1.6+
| Assignee | ||
Comment 10•22 years ago
|
||
Checked in before 1.6. Thanks!
| Assignee | ||
Comment 11•22 years ago
|
||
Fixed.
| Assignee | ||
Updated•22 years ago
|
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•