зеркало из https://github.com/mozilla/pjs.git
Added NS_RELEASE in FlushText() of interface returned from QueryInterface()
This commit is contained in:
Родитель
10c929bd01
Коммит
b499cf04c1
|
@ -1501,6 +1501,7 @@ HTMLContentSink::FlushText()
|
|||
nsIContent* content = nsnull;
|
||||
mCurrentText->QueryInterface(kIContentIID, (void**) &content);
|
||||
content->SetDocument(mDocument);
|
||||
NS_RELEASE(content);
|
||||
NS_RELEASE(mCurrentText);
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
|
@ -1501,6 +1501,7 @@ HTMLContentSink::FlushText()
|
|||
nsIContent* content = nsnull;
|
||||
mCurrentText->QueryInterface(kIContentIID, (void**) &content);
|
||||
content->SetDocument(mDocument);
|
||||
NS_RELEASE(content);
|
||||
NS_RELEASE(mCurrentText);
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче