MLK: From nsComponentManagerImpl::PlatformCreateDll()

RESOLVED FIXED in M9

Status

()

Core
XPCOM
P3
normal
RESOLVED FIXED
19 years ago
10 years ago

People

(Reporter: Bruce Mitchener, Assigned: Suresh Duddi (gone))

Tracking

Trunk
Sun
Solaris
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
nsComponentManagerImpl::PlatformCreateDll() allocates some memory which it
returns to ::SyncComponentsInFile() (and any other callers).  This memory isn't
getting deallocated.

Solaris 2.6, gcc 2.7.2.3, pull and build from March 12, 1999.


MLK: 384 bytes leaked in 12 blocks
  * This memory was allocated from:
        malloc         [rtlib.o]
        __bUiLtIn_nEw  [libgcc.a]
        __builtin_new  [rtlib.o]
        nsComponentManagerImpl::PlatformCreateDll(const char*,nsDll**) [nsCompon
entManager.cpp:402]
        nsComponentManagerImpl::SyncComponentsInFile(const char*) [nsComponentMa
nager.cpp:1770]
        nsComponentManagerImpl::SyncComponentsInDir(const char*) [nsComponentMan
ager.cpp:1697]
  * Block of 32 bytes (12 times); last block at 0x1c0d40
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
(Assignee)

Comment 1

19 years ago
This data never gets freed until app dies as the xpcom object lives through the
lifeof app.
What happens when I embed gecko in my application and then want to shut down the
layout engine later?  Not every application is a web browser, and not every
app's lifetime will be identical to that of the layout engine.

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 3

19 years ago
Verified Invalid
(Reporter)

Comment 4

19 years ago
dp, should this be re-opened along with some of the other bugs since XPCOM is
supposed to be getting a shutdown system?
(Assignee)

Updated

19 years ago
Status: VERIFIED → REOPENED
(Assignee)

Updated

19 years ago
Resolution: INVALID → ---
(Assignee)

Updated

19 years ago
Status: REOPENED → ASSIGNED
Target Milestone: M9
(Assignee)

Comment 5

19 years ago
Yes. thanks bruce.
(Assignee)

Comment 6

19 years ago
This should get deallocated as XPCOM shuts down now.
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago19 years ago
Resolution: --- → FIXED

Updated

10 years ago
Component: XPCOM Registry → XPCOM
QA Contact: dp → xpcom
You need to log in before you can comment on or make changes to this bug.