Bug 771976 - Part 2: Make sure that nsEditorSpellCheck's refcount doesn't go down prematurely; r=roc

This commit is contained in:
Ehsan Akhgari 2012-07-17 00:01:15 -04:00
parent 8b3f68b81c
commit 989a0759e3

View File

@ -500,6 +500,8 @@ nsEditorSpellCheck::GetCurrentDictionary(nsAString& aDictionary)
{
NS_ENSURE_TRUE(mSpellChecker, NS_ERROR_NOT_INITIALIZED);
nsRefPtr<nsEditorSpellCheck> kungFuDeathGrip = this;
return mSpellChecker->GetCurrentDictionary(aDictionary);
}