char* urlStr; mURL->GetSpec(&urlStr); if (urlStr) { mHashValue = nsCRT::HashCode(urlStr); nsCRT::free(urlStr);
mURL->GetSpec((char **)&mSpec); if (mSpec) { mHashValue = nsCRT::HashCode(mSpec);
MOZ_DECL_CTOR_COUNTER(URLKey)class URLKey: public nsHashKey {public:  URLKey(nsIURI* aURL)    : nsHashKey(),      mURL(aURL)  {    MOZ_COUNT_CTOR(URLKey);    NS_ADDREF(mURL);    mHashValue = 0;    char* urlStr;    mURL->GetSpec(&urlStr);    if (urlStr) {      mHashValue = nsCRT::HashCode(urlStr);      nsCRT::free(urlStr);    }  }