From e123d673c9fc32bdf7d8a044f450d4319b89a314 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 git-svn-id: svn://10.0.0.236/trunk@187824 18797224-902f-48f8-a5cc-f745e15eee43 --- .../toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp b/mozilla/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp index f0c7f47d8f0..4788655ee43 100755 --- a/mozilla/toolkit/components/typeaheadfind/src/nsTypeAheadFind.cpp +++ b/mozilla/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; }