bug 201711. We were not uninstalling the component. r=darin

This commit is contained in:
dougt@netscape.com
2003-04-18 00:46:34 +00:00
parent 87feadd13a
commit d1e071836a

View File

@@ -3326,8 +3326,12 @@ nsComponentManagerImpl::AutoUnregisterComponent(PRInt32 when,
continue;
}
rv = mLoaderData[i].loader->AutoUnregisterComponent(when, component, &didUnRegister);
if (NS_SUCCEEDED(rv) && didUnRegister)
if (NS_SUCCEEDED(rv) && didUnRegister) {
// we need to remove this file from our list of known libraries.
RemoveFileInfo(component, nsnull);
mRegistryDirty = PR_TRUE;
break;
}
}
return NS_FAILED(rv) ? NS_ERROR_FACTORY_NOT_REGISTERED : NS_OK;
}