NS_IF_RELEASE(kNC_SearchResult);
InternetSearchDataSource::~InternetSearchDataSource (void){	if (--gRefCnt == 0)	{		NS_IF_RELEASE(kNC_SearchResult);		NS_IF_RELEASE(kNC_SearchEngineRoot);		NS_IF_RELEASE(kNC_LastSearchRoot);		NS_IF_RELEASE(kNC_LastSearchMode);		NS_IF_RELEASE(kNC_SearchCategoryRoot);		NS_IF_RELEASE(kNC_SearchResultsSitesRoot);		NS_IF_RELEASE(kNC_FilterSearchURLsRoot);		NS_IF_RELEASE(kNC_FilterSearchSitesRoot);		NS_IF_RELEASE(kNC_SearchType);		NS_IF_RELEASE(kNC_Ref);		NS_IF_RELEASE(kNC_Child);		NS_IF_RELEASE(kNC_Title);		NS_IF_RELEASE(kNC_Data);		NS_IF_RELEASE(kNC_Name);		NS_IF_RELEASE(kNC_Description);		NS_IF_RELEASE(kNC_LastText);		NS_IF_RELEASE(kNC_URL);		NS_IF_RELEASE(kRDF_InstanceOf);		NS_IF_RELEASE(kRDF_type);		NS_IF_RELEASE(kNC_loading);		NS_IF_RELEASE(kNC_HTML);		NS_IF_RELEASE(kNC_Icon);		NS_IF_RELEASE(kNC_StatusIcon);		NS_IF_RELEASE(kNC_Banner);		NS_IF_RELEASE(kNC_Site);		NS_IF_RELEASE(kNC_Relevance);		NS_IF_RELEASE(kNC_RelevanceSort);		NS_IF_RELEASE(kNC_Date);		NS_IF_RELEASE(kNC_PageRank);		NS_IF_RELEASE(kNC_Engine);		NS_IF_RELEASE(kNC_Price);		NS_IF_RELEASE(kNC_PriceSort);		NS_IF_RELEASE(kNC_Availability);		NS_IF_RELEASE(kNC_BookmarkSeparator);		NS_IF_RELEASE(kNC_Update);		NS_IF_RELEASE(kNC_UpdateIcon);		NS_IF_RELEASE(kNC_UpdateCheckDays);		NS_IF_RELEASE(kWEB_LastPingDate);		NS_IF_RELEASE(kWEB_LastPingModDate);		NS_IF_RELEASE(kWEB_LastPingContentLen);		NS_IF_RELEASE(kNC_SearchCommand_AddToBookmarks);		NS_IF_RELEASE(kNC_SearchCommand_FilterResult);		NS_IF_RELEASE(kNC_SearchCommand_FilterSite);		NS_IF_RELEASE(kNC_SearchCommand_ClearFilters);		NS_IF_RELEASE(kTrueLiteral);		NS_IF_RELEASE(mInner);		mUpdateArray = nsnull;		mLocalstore = nsnull;		mBackgroundLoadGroup = nsnull;		mLoadGroup = nsnull;		categoryDataSource = nsnull;				if (mTimer)		{			// be sure to cancel the timer, as it holds a			// weak reference back to InternetSearchDataSource			mTimer->Cancel();			mTimer = nsnull;		}		if (prefs)		{			prefs->UnregisterCallback("browser.search.mode", searchModePrefCallback, this);			prefs = nsnull;		}		if (gRDFC)		{			nsServiceManager::ReleaseService(kRDFContainerUtilsCID, gRDFC);			gRDFC = nsnull;		}		if (gRDFService)		{			nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService);			gRDFService = nsnull;		}	}}