mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 573188 - Fix string leak in nsTextEditorState::SetValue. r=roc
This commit is contained in:
parent
cdb0ab63d7
commit
9b1f9e826d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user