Closed
Bug 43586
Opened 25 years ago
Closed 25 years ago
3 objects held past XPCOM shutdown in static nsCOMPtrs
Categories
(SeaMonkey :: Search, defect, P3)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: dbaron, Assigned: mozilla)
References
(Blocks 1 open bug)
Details
(Keywords: memory-leak, Whiteboard: [tind-mlk])
InternetSearchDataSource::mTimer, a static nsCOMPtr, is held past XPCOM
shutdown.
See \mozilla\xpfe\components\search\src\nsInternetSearchService.cpp.
See bug 43561 for more info.
Reporter | ||
Updated•25 years ago
|
OS: All → Windows 98
Hardware: All → PC
Reporter | ||
Comment 1•25 years ago
|
||
Let's have this bug also cover:
InternetSearchDataSource::categoryDataSource (an RDFXMLDataSourceImpl)
InternetSearchDataSource::mLocalStore (a LocalStoreImpl)
Summary: nsTimer held past XPCOM shutdown in static nsCOMPtr → 3 objects held past XPCOM shutdown in static nsCOMPtrs
Reporter | ||
Updated•25 years ago
|
Whiteboard: [tind-mlk]
Reporter | ||
Comment 2•25 years ago
|
||
The RDFXMLDataSourceImpl is responsible for leaking a lot of strings. This is a
major one for the leak stats.
Reporter | ||
Comment 3•25 years ago
|
||
This is probably the biggest holding of XPCOM objects past XPCOM shutdown.
Giving it to waterson, cc:ing rjc (perhaps it should be the other way around).
Assignee: matt → waterson
Reporter | ||
Comment 4•25 years ago
|
||
Now I'm not seeing this. I saw it this morning in the same build. Maybe it's
intermittent.
Comment 5•25 years ago
|
||
rjc, this is probably something you can fix better than I can.
Assignee: waterson → rjc
Reporter | ||
Comment 6•25 years ago
|
||
I think this actually only happens when something else is leaked. But, static
nsCOMPtrs are bad anyway because they will mess with XPCOM objects after XPCOM
shutdown. Right?
Assignee | ||
Comment 7•25 years ago
|
||
For |InternetSearchDataSource|, I believe that categoryDataSource, mLocalStore,
and mTimer are all null'ed out in its destructor.
Ref:
http://lxr.mozilla.org/seamonkey/source/xpfe/components/search/src/nsInternetSea
rchService.cpp#651
so if the destructor isn't being called, perhaps the whole datasource is leaking
due to an extra reference somewhere else?
Assignee | ||
Comment 8•25 years ago
|
||
dbaron, do you still see these leaks? XUL documents were leaking for a while but
I believe those leaks have been plugged which should have plugged these leaks as
well.
Reporter | ||
Comment 9•25 years ago
|
||
No, I don't see this anymore. But should you really be using static nsCOMPtrs?
Assignee | ||
Comment 10•25 years ago
|
||
I'm not aware of anything wrong with using static nsCOMPtr<>s as long as they
are nsnulled out (i.e. cleared) in the classes destructor from which they were
created, for example.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Comment 11•22 years ago
|
||
mass-verifying WorksForMe bugs which haven't changed since 2001.12.31.
set your search string in mail to "EmperorLondoMollari" to filter out these
messages.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•