Closed
Bug 4291
Opened 26 years ago
Closed 26 years ago
MLK: nsString from nsBaseAppCore::Init()
Categories
(SeaMonkey :: UI Design, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M5
People
(Reporter: bruce, Assigned: law)
Details
Pull/build from March 25, 1999. Solaris 2.6, gcc 2.7.2.3, etc.
MLK: 34 bytes leaked at 0x867718
* This memory was allocated from:
malloc [rtlib.o]
__bUiLtIn_nEw [libgcc.a]
__builtin_new [rtlib.o]
__bUiLtIn_vEc_nEw [libgcc.a]
__builtin_vec_new [rtlib.o]
nsString::EnsureCapacityFor(int) [nsString.cpp:314]
nsString::SetString(const unsigned short*,int) [nsString.cpp:817]
nsString::operator =(const nsString&) [nsString.cpp:871]
nsBaseAppCore::Init(const nsString&) [nsBaseAppCore.cpp:101]
nsBrowserAppCore::Init(const nsString&) [nsBrowserAppCore.cpp:188]
BaseAppCoreInit(JSContext*,JSObject*,unsigned int,long*,long*) [nsJSBase
AppCore.cpp:167]
Re-assigned to rods@netscape.com.
Rod, this looks to be in some of your original code.
Updated•26 years ago
|
Assignee: rods → rickg
Comment 2•26 years ago
|
||
This appears to be a leak in the nsString code. Not the AppCore code.
Rod -- you need to look deeper. I think the leak is technically caused by
something in appcore allocating a string and never deleting it.
Updated•26 years ago
|
Target Milestone: M5
Comment 4•26 years ago
|
||
moving to m5
Updated•26 years ago
|
Assignee: rods → law
Comment 5•26 years ago
|
||
From what I can tell, it looks like this is because some nsAtoms are being
created and never freed.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I've reworked the use of atoms by the file download dialog(s) so that they get
created/destroyed as needed. When I move this code to its own service I'll use
service loading/unloading to manage this.
This will go in as soon as M4 is branched.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 7•25 years ago
|
||
Bill, did this ever get into the tree? If so, can you please verify this one
since you get to look at the code? thanks
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•