Closed Bug 4291 Opened 26 years ago Closed 26 years ago

MLK: nsString from nsBaseAppCore::Init()

Categories

(SeaMonkey :: UI Design, defect, P3)

Sun
Solaris

Tracking

(Not tracked)

VERIFIED FIXED

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]
Assignee: don → rods
Re-assigned to rods@netscape.com. Rod, this looks to be in some of your original code.
Assignee: rods → rickg
This appears to be a leak in the nsString code. Not the AppCore code.
Assignee: rickg → rods
Rod -- you need to look deeper. I think the leak is technically caused by something in appcore allocating a string and never deleting it.
Target Milestone: M5
moving to m5
Assignee: rods → law
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.
Status: RESOLVED → VERIFIED
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
Yes (pre-M4, as it turned out).
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.