delete impl; return rv;
}
NS_NewLocalStore(nsILocalStore** aResult){    NS_PRECONDITION(aResult != nsnull, "null ptr");    if (! aResult)        return NS_ERROR_NULL_POINTER;    LocalStoreImpl* impl = new LocalStoreImpl();    if (! impl)        return NS_ERROR_OUT_OF_MEMORY;    nsresult rv;    rv = impl->Init();    if (NS_FAILED(rv)) {        delete impl;        return rv;    }    // We need to read this synchronously.    rv = impl->Refresh(PR_TRUE);    if (NS_FAILED(rv)) {#ifdef	DEBUG	printf("\n\nRDF: NS_NewLocalStore::Refresh() failed.\n\n");#endif        delete impl;        return rv;    }    NS_ADDREF(impl);    *aResult = impl;    return NS_OK;}