From aed8e309c8caccb5930bbdfc02c08ad397ddb94d Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Tue, 21 Dec 1999 00:09:48 +0000 Subject: [PATCH] mParentContentListener is now held as a weak reference as it should be. git-svn-id: svn://10.0.0.236/trunk@56250 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDSURIContentListener.cpp | 4 +++- mozilla/docshell/base/nsDSURIContentListener.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsDSURIContentListener.cpp b/mozilla/docshell/base/nsDSURIContentListener.cpp index 7b75af87c0b..73391d37b95 100644 --- a/mozilla/docshell/base/nsDSURIContentListener.cpp +++ b/mozilla/docshell/base/nsDSURIContentListener.cpp @@ -27,7 +27,8 @@ //*** nsDSURIContentListener: Object Management //***************************************************************************** -nsDSURIContentListener::nsDSURIContentListener() : mDocShell(nsnull) +nsDSURIContentListener::nsDSURIContentListener() : mDocShell(nsnull), + mParentContentListener(nsnull) { NS_INIT_REFCNT(); } @@ -138,6 +139,7 @@ void nsDSURIContentListener::GetParentContentListener(nsIURIContentListener** void nsDSURIContentListener::SetParentContentListener(nsIURIContentListener* aParentListener) { + // Weak Reference, don't addref mParentContentListener = aParentListener; } diff --git a/mozilla/docshell/base/nsDSURIContentListener.h b/mozilla/docshell/base/nsDSURIContentListener.h index 0c7f7a5ca14..d4904354424 100644 --- a/mozilla/docshell/base/nsDSURIContentListener.h +++ b/mozilla/docshell/base/nsDSURIContentListener.h @@ -53,8 +53,9 @@ protected: protected: nsDocShell* mDocShell; - nsCOMPtr mParentContentListener; nsCOMPtr mPresContext; + + nsIURIContentListener* mParentContentListener; // Weak Reference }; #endif /* nsDSURIContentListener_h__ */