mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 659340: Add paranoia on frame life back in nsTextControlFrames. r=ehsan
This commit is contained in:
parent
540b2aefc4
commit
263db9515a
@ -456,12 +456,13 @@ nsTextControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
|
||||
initializer->Revoke();
|
||||
}
|
||||
initializer = new EditorInitializer(this);
|
||||
Properties().Set(TextControlInitializer(),initializer);
|
||||
if (!nsContentUtils::AddScriptRunner(initializer)) {
|
||||
initializer->Revoke(); // paranoia
|
||||
Properties().Delete(TextControlInitializer());
|
||||
delete initializer;
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
Properties().Set(TextControlInitializer(),initializer);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user