Closed
Bug 108047
Opened 23 years ago
Closed 23 years ago
nsEventQueueImpl destructor uses getService to shutdown; suggest using WeakRef
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 134723
Future
People
(Reporter: depman1, Assigned: dougt)
Details
this is causing warning msg when shutting down Mozilla. See bug 107391).
reproduced in 10/27 debug mozilla build.
1. Set break points in nsWarning messages in nsComponentManager.cpp;
nsComponentManagerImpl::GetService() and
nsComponentManagerImpl::GetServiceByContractID() (currently lines 1750 & 2075).
2. Launch Mozilla with F5.
3. Quit Mozilla.
4. Press F5 until you see stack trace including destructor for
nsEventQueueImpl()
5. Doubleclick on line above ~nsEventQueueImpl():
nsEventQueueImpl::NotifyObservers(const char * 0x10110b54) line 220 + 30 bytes
Result: Creates nsIObserverService object by calling do_GetService() to shutdown
nsEventQueueImpl service.
Suggest registering a weakReference.
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → Future
*** This bug has been marked as a duplicate of 134723 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•