diff --git a/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp b/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp index f0c7f47d8f0..4788655ee43 100755 --- a/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp +++ b/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp @@ -215,6 +215,10 @@ nsTypeAheadFind::SetDocShell(nsIDocShell* aDocShell) mStartFindRange = nsnull; mStartPointRange = do_CreateInstance(kRangeCID); mSearchRange = do_CreateInstance(kRangeCID); + + mFoundLink = nsnull; + mCurrentWindow = nsnull; + return NS_OK; }