зеркало из https://github.com/mozilla/gecko-dev.git
Fix crash regression bug 289180. r=mrbkap, sr=roc
This commit is contained in:
Родитель
8767c080a4
Коммит
26f679cfe3
|
@ -1235,8 +1235,9 @@ nsXMLContentSink::ReportError(const PRUnichar* aErrorText,
|
|||
}
|
||||
NS_IF_RELEASE(mDocElement);
|
||||
|
||||
// Clear any buffered-up text we have
|
||||
mText = nsnull;
|
||||
// Clear any buffered-up text we have. It's enough to set the length to 0.
|
||||
// The buffer itself is allocated when we're created and deleted in our
|
||||
// destructor, so don't mess with it.
|
||||
mTextLength = 0;
|
||||
|
||||
if (mXSLTProcessor) {
|
||||
|
|
|
@ -331,8 +331,9 @@ nsXMLFragmentContentSink::ReportError(const PRUnichar* aErrorText,
|
|||
}
|
||||
}
|
||||
|
||||
// Clear any buffered-up text we have
|
||||
mText = nsnull;
|
||||
// Clear any buffered-up text we have. It's enough to set the length to 0.
|
||||
// The buffer itself is allocated when we're created and deleted in our
|
||||
// destructor, so don't mess with it.
|
||||
mTextLength = 0;
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче