Closed
Bug 33856
Opened 24 years ago
Closed 24 years ago
MLK: nsBasicEncoder
Categories
(Core :: XUL, defect, P3)
Tracking
()
M18
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'
Updated•24 years ago
|
Status: NEW → ASSIGNED
Keywords: mlk
Updated•24 years ago
|
Target Milestone: --- → M16
Comment 1•24 years ago
|
||
Move to M16
Comment 2•24 years ago
|
||
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
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 3•24 years ago
|
||
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.
Assignee | ||
Updated•24 years ago
|
Target Milestone: M16 → M18
Comment 4•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•