nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163

This commit is contained in:
dougt@netscape.com
2001-10-19 20:52:59 +00:00
parent 25c3b83d89
commit 19dc5b259f
116 changed files with 675 additions and 925 deletions

View File

@@ -197,5 +197,5 @@ svc = _xpcom.GetGlobalServiceManager().GetService("@mozilla.org/observer-service
# observer alive ourself, and must keep the COM object alive,
# _not_ just the Python instance!!!
_shutdownObserver = xpcom.server.WrapObject(_ShutdownObserver(), interfaces.nsIObserver)
svc.AddObserver(_shutdownObserver, "xpcom-shutdown")
svc.addObserver(_shutdownObserver, "xpcom-shutdown", false)
del svc, _ShutdownObserver