Closed
Bug 219536
Opened 21 years ago
Closed 21 years ago
nsWidget::InitEvent leaks events, and thus the main window
Categories
(Core Graveyard :: GFX: Gtk, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.6alpha
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: memory-leak, Whiteboard: [patch])
Attachments
(3 files)
1.83 KB,
patch
|
blizzard
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
1.70 KB,
patch
|
Details | Diff | Splinter Review | |
2.45 KB,
patch
|
Details | Diff | Splinter Review |
nsWidget::InitEvent leaks events, and thus the main window, since
gtk_get_current_event returns a result that was copied and must be freed using
gdk_event_free.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Assignee | ||
Comment 3•21 years ago
|
||
This wasn't perfect, but it was close enough.
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Keywords: mlk
Priority: -- → P3
Whiteboard: [patch]
Target Milestone: --- → mozilla1.6alpha
Assignee | ||
Updated•21 years ago
|
Attachment #131645 -
Flags: superreview?(bryner)
Attachment #131645 -
Flags: review?(blizzard)
Comment 4•21 years ago
|
||
So copying the event prevents it from being leaked? That seems odd.
Assignee | ||
Comment 5•21 years ago
|
||
No, it's always been copied. We need to free the copy to prevent the window
from being leaked. (The events themselves are arena-allocated.)
Comment 6•21 years ago
|
||
Comment on attachment 131645 [details] [diff] [review]
patch
ahh, sorry. I was mis-reading the patch.
Attachment #131645 -
Flags: review?(blizzard) → review+
Updated•21 years ago
|
Attachment #131645 -
Flags: superreview?(bryner) → superreview+
Assignee | ||
Comment 7•21 years ago
|
||
Fix checked in to trunk, 2003-09-24 22:34:25 -0700.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•