mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771976 - Make sure that mozSpellChecker's refcount doesn't go down prematurely; r=roc
This commit is contained in:
parent
fcc673a579
commit
2717440a15
@ -333,6 +333,9 @@ mozSpellChecker::GetCurrentDictionary(nsAString &aDictionary)
|
||||
NS_IMETHODIMP
|
||||
mozSpellChecker::SetCurrentDictionary(const nsAString &aDictionary)
|
||||
{
|
||||
// Calls to mozISpellCheckingEngine::SetDictionary might destroy us
|
||||
nsRefPtr<mozSpellChecker> kungFuDeathGrip = this;
|
||||
|
||||
mSpellCheckingEngine = nsnull;
|
||||
|
||||
if (aDictionary.IsEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user