Bug 573188 - Fix string leak in nsTextEditorState::SetValue. r=roc

This commit is contained in:
Jesse Ruderman 2010-06-21 09:16:06 -07:00
parent cdb0ab63d7
commit 9b1f9e826d

View File

@ -1764,7 +1764,7 @@ nsTextEditorState::SetValue(const nsAString& aValue, PRBool aUserInput)
}
nsString value(aValue);
nsContentUtils::PlatformToDOMLineBreaks(value);
*mValue = ToNewUTF8String(value);
CopyUTF16toUTF8(value, *mValue);
// Update the frame display if needed
if (mBoundFrame) {