take out wrong assertion, we should do QueryInterface to both entry->mService and service with the sand IID and them compare them . approved by warren

This commit is contained in:
ftang%netscape.com 1999-03-26 00:49:06 +00:00
Родитель 75e6f0ebb9
Коммит 5fc6e9fb4c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -277,7 +277,7 @@ nsServiceManagerImpl::ReleaseService(const nsCID& aClass, nsISupports* service,
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key); nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
NS_ASSERTION(entry, "service not found"); NS_ASSERTION(entry, "service not found");
NS_ASSERTION(entry->mService == service, "service looked failed"); // NS_ASSERTION(entry->mService == service, "service looked failed");
if (entry) { if (entry) {
rv = entry->RemoveListener(shutdownListener); rv = entry->RemoveListener(shutdownListener);

Просмотреть файл

@ -277,7 +277,7 @@ nsServiceManagerImpl::ReleaseService(const nsCID& aClass, nsISupports* service,
nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key); nsServiceEntry* entry = (nsServiceEntry*)mServices->Get(&key);
NS_ASSERTION(entry, "service not found"); NS_ASSERTION(entry, "service not found");
NS_ASSERTION(entry->mService == service, "service looked failed"); // NS_ASSERTION(entry->mService == service, "service looked failed");
if (entry) { if (entry) {
rv = entry->RemoveListener(shutdownListener); rv = entry->RemoveListener(shutdownListener);