mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771976 - Part 2: Make sure that nsEditorSpellCheck's refcount doesn't go down prematurely; r=roc
This commit is contained in:
parent
8b3f68b81c
commit
989a0759e3
@ -500,6 +500,8 @@ nsEditorSpellCheck::GetCurrentDictionary(nsAString& aDictionary)
|
||||
{
|
||||
NS_ENSURE_TRUE(mSpellChecker, NS_ERROR_NOT_INITIALIZED);
|
||||
|
||||
nsRefPtr<nsEditorSpellCheck> kungFuDeathGrip = this;
|
||||
|
||||
return mSpellChecker->GetCurrentDictionary(aDictionary);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user