if (mTimer) {   mTimer->Cancel(); mTimer = nsnull; }  mConnectionList = nsnull; mNodeList = nsnull;  if (mDirRDF) {  mDirRDF->UnregisterDataSource(this); }
if (gRDF) { nsServiceManager::ReleaseService(kRDFServiceCID, gRDF); gRDF = nsnull; } }
nsHTTPIndex::~nsHTTPIndex(){  // note: these are NOT statics due to the native of nsHTTPIndex  // where it may or may not be treated as a singleton    if (mTimer)    {        // be sure to cancel the timer, as it holds a        // weak reference back to nsHTTPIndex        mTimer->Cancel();        mTimer = nsnull;    }    mConnectionList = nsnull;    mNodeList = nsnull;        if (mDirRDF)      {        // UnregisterDataSource() may fail; just ignore errors        mDirRDF->UnregisterDataSource(this);      }}