зеркало из https://github.com/mozilla/pjs.git
Get rid of circular reference between sink and parser. Fix for bug 8975.
This commit is contained in:
Родитель
b8ad6df8ca
Коммит
15cc7a1e6c
|
@ -225,6 +225,10 @@ nsHTMLFragmentContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
|||
{
|
||||
FlushText();
|
||||
|
||||
// Drop our reference to the parser to get rid of a circular
|
||||
// reference.
|
||||
NS_IF_RELEASE(mParser);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -225,6 +225,10 @@ nsHTMLFragmentContentSink::DidBuildModel(PRInt32 aQualityLevel)
|
|||
{
|
||||
FlushText();
|
||||
|
||||
// Drop our reference to the parser to get rid of a circular
|
||||
// reference.
|
||||
NS_IF_RELEASE(mParser);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче