Bug 106967: fix crash (doh me)

This commit is contained in:
jaggernaut%netscape.com 2001-10-26 21:37:07 +00:00
parent 73ee93a7cc
commit cd797fe0a1

View File

@ -199,7 +199,7 @@ nsRDFResource::GetDelegate(const char* aKey, REFNSIID aIID, void** aResult)
contractID.Append(*p);
nsCOMPtr<nsIRDFDelegateFactory> delegateFactory =
do_CreateInstance(contractID.get());
do_CreateInstance(contractID.get(), &rv);
if (NS_FAILED(rv)) return rv;
rv = delegateFactory->CreateDelegate(this, aKey, aIID, aResult);