gRDFService->GetLiteral(ptitle, &titleLiteral);
gRDFService->GetLiteral(ptitle, getter_AddRefs(titleLiteral));
nsHistoryDataSource::AddPageToGraph(char* url, char* title,                                     char* referer,  PRTime date){	nsresult	rv = NS_ERROR_OUT_OF_MEMORY;	char *histURL = PR_smprintf("hst://%s", url);	if (histURL)	{		nsIRDFResource	*siteResource;    		rv = getSiteOfURL(url, &siteResource);		if (rv == NS_OK)		{			nsIRDFResource *pageResource, *refererResource, *histResource;    			nsIRDFLiteral  *titleLiteral;			nsIRDFDate     *dateLiteral;			gRDFService->GetResource(url, &pageResource);			gRDFService->GetResource(histURL, &histResource);			gRDFService->GetResource(referer, &refererResource);			gRDFService->GetDateLiteral(date, &dateLiteral);			nsAutoString ptitle(title);			gRDFService->GetLiteral(ptitle, &titleLiteral);			mInner->Assert(histResource,  mResourcePage, pageResource, 1);			mInner->Assert(histResource,  mResourceDate, dateLiteral, 1);			mInner->Assert(pageResource,  mResourceTitle, titleLiteral, 1);			mInner->Assert(histResource,  mResourceReferer, refererResource, 1);			mInner->Assert(siteResource,  mResourceChild, pageResource, 1);			AddToDateHierarchy(date, histResource);			UpdateLastVisitDate (pageResource, 1/* date */);			NS_RELEASE(histResource);			NS_RELEASE(siteResource);			NS_RELEASE(pageResource);			NS_RELEASE(refererResource);			NS_RELEASE(dateLiteral);			NS_RELEASE(titleLiteral);		}		PR_smprintf_free(histURL);	}	return(rv);}