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

git-svn-id: svn://10.0.0.236/trunk@141348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com 2003-04-18 00:46:34 +00:00
parent af528987ef
commit c19388fec5

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;
}