Fixing RDF crash. Change weak pointer to strong pointer as was the intention (as the comment in the code reflects) when the fix for crash bug 248071 landed. r=axel@pike.org, sr=darin@meer.net

This commit is contained in:
jst%mozilla.jstenback.com 2004-09-10 22:48:10 +00:00
parent affadd4f4a
commit bfd2eb597a

View File

@ -1073,7 +1073,7 @@ RDFXMLDataSourceImpl::EndLoad(void)
// Make sure to hold a strong reference to the observer so
// that it doesn't go away in this call if it removes itself
// as an observer
nsIRDFXMLSinkObserver* obs = mObservers[i];
nsCOMPtr<nsIRDFXMLSinkObserver> obs = mObservers[i];
if (obs) {
obs->OnEndLoad(this);