Closed Bug 33856 Opened 24 years ago Closed 24 years ago

MLK: nsBasicEncoder

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 43580

People

(Reporter: bruce, Assigned: tajima)

References

()

Details

(Keywords: memory-leak)

nsWindow::SetTitle() in the GTK code (see above URL) has a static variable to
store the Unicode converter.  That never allows the nsIUnicodeEncoder to get
deallocated.  This is bad for our embedding story.  This can be seen by running
viewer or mozilla-bin and looking at the XPCOM_MEM_LEAK_LOG for 'nsBasicEncoder'
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Move to M16
toshi- can you help to fix this ? We need to release that converter when the DLL 
is unload. dp and pavolv, can you folks tell toshi how can we plug in code which 
will be called when the gtkwidget dll get unloaded ?
Assignee: ftang → tajima
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
One way to solve this is to move this local static to a class static, add a 
class object ref count in constructor and destructor. and in destructor, if the 
ref count == 0, rleaes it if it is not null.
Target Milestone: M16 → M18
Keywords: nsbeta3
dup of my bug i just checked in a fix for

*** This bug has been marked as a duplicate of 43580 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.