Closed
Bug 216512
Opened 22 years ago
Closed 21 years ago
X-remote code leaks gdk windows
Categories
(Core Graveyard :: X-remote, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.6alpha
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: memory-leak, Whiteboard: [patch])
Attachments
(1 file)
6.70 KB,
patch
|
blizzard
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
The X-Remote code leaks GDK Windows because it doesn't destroy its window until
after the event loop has stopped running:
gdk_superwin_destroy
(/builds/trunk/mozilla/widget/src/gtksuperwin/gdksuperwin.cgtk_marshal_NONE__NONE
(/usr/lib/libgtk-1.2.so.0)
gtk_signal_set_funcs (/usr/lib/libgtk-1.2.so.0)
gtk_signal_emit (/usr/lib/libgtk-1.2.so.0)
gtk_object_destroy (/usr/lib/libgtk-1.2.so.0)
gtk_object_destroy (/usr/lib/libgtk-1.2.so.0)
gtk_widget_destroy (/usr/lib/libgtk-1.2.so.0)
nsWindow::DestroyNative()
(/builds/trunk/mozilla/widget/src/gtk/nsWindow.cpp:496nsWidget::Destroy()
(/builds/trunk/mozilla/widget/src/gtk/nsWidget.cpp:365)
nsWindow::Destroy() (/builds/trunk/mozilla/widget/src/gtk/nsWindow.cpp:407)
XRemoteService::DestroyProxyWindow()
(/builds/trunk/mozilla/xpfe/components/xremXRemoteService::Shutdown()
(/builds/trunk/mozilla/xpfe/components/xremote/src/XR./mozilla-bin+1475B
(./mozilla-bin)
main (./mozilla-bin)
__libc_start_main (/lib/tls/libc.so.6)
The two GDK windows that the superwin owns are leaked, but the leak goes away if
this code gets called while the event loop is still running.
I'll attach a patch that fixes the leak, although it's not ideal. In
particular, I'm a little puzzled as to why adding the observer inside
CreateProxyWindow doesn't work.
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Keywords: mlk
Priority: -- → P3
Whiteboard: [patch]
Target Milestone: --- → mozilla1.6alpha
Updated•21 years ago
|
Attachment #129968 -
Flags: review+
Assignee | ||
Updated•21 years ago
|
Attachment #129968 -
Flags: superreview?(bryner)
Updated•21 years ago
|
Attachment #129968 -
Flags: superreview?(bryner) → superreview+
Assignee | ||
Comment 2•21 years ago
|
||
Fix checked in to trunk, 2003-09-17 16:46 -0700.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•