From 3080a7b78ba16ccd91232ccb75a6e2065695256b Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Thu, 19 Jan 2006 15:13:09 +0000 Subject: [PATCH] Bug 315708 Should release found link and current window object from nsTypeAheadFind.cpp r=mconnor --- toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }