if (gXULSortService) { nsServiceManager::ReleaseService(kXULSortServiceCID, gXULSortService); gXULSortService = nsnull; }
NS_IF_RELEASE(gXULSortService);
nsXULContentBuilder::~nsXULContentBuilder(){    if (--gRefCnt == 0) {        if (gXULSortService) {            nsServiceManager::ReleaseService(kXULSortServiceCID, gXULSortService);            gXULSortService = nsnull;        }        NS_IF_RELEASE(gHTMLElementFactory);        NS_IF_RELEASE(gXMLElementFactory);    }}