Bug 47927. Check in the wrong fix to get the tree open. a=granrose.

This commit is contained in:
waterson%netscape.com 2000-08-09 19:30:14 +00:00
Родитель d04a534a32
Коммит f064495d03
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -967,6 +967,8 @@ nsHTTPIndex::~nsHTTPIndex()
if (gRDF)
{
// XXX robert, this is wrong
gRDF->UnregisterDataSource(this);
nsServiceManager::ReleaseService(kRDFServiceCID, gRDF);
gRDF = nsnull;
}
@ -1005,6 +1007,7 @@ nsHTTPIndex::Init()
if (NS_FAILED(rv = NS_NewISupportsArray(getter_AddRefs(mConnectionList))))
return(rv);
// XXX robert: this is wrong.
// (do this last) register this as a named data source with the RDF service
rv = gRDF->RegisterDataSource(this, PR_FALSE);
if (NS_FAILED(rv)) return(rv);