From 2d9036668bca1bfa1bad0da7b03d4f9760d1a312 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 10 Sep 1999 02:22:46 +0000 Subject: [PATCH] fix for bustage for evaughan. don't use nsCOMPtr with an implementation. git-svn-id: svn://10.0.0.236/trunk@46690 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsBoxFrame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/xul/base/src/nsBoxFrame.cpp b/mozilla/layout/xul/base/src/nsBoxFrame.cpp index d6d9e9c071a..58596719bda 100644 --- a/mozilla/layout/xul/base/src/nsBoxFrame.cpp +++ b/mozilla/layout/xul/base/src/nsBoxFrame.cpp @@ -101,12 +101,14 @@ public: nsBoxFrameInner(nsBoxFrame* aThis) { mOuter = aThis; + mDebugInner = nsnull; } ~nsBoxFrameInner() { if (mDebugInner) { mDebugInner->RemoveListener(); + NS_RELEASE(mDebugInner); mDebugInner = nsnull; } } @@ -121,7 +123,7 @@ public: nsCOMPtr mSpaceManager; // We own this [OWNER]. PRUint32 mFlags; nsBoxFrame* mOuter; - nsCOMPtr mDebugInner; + nsBoxDebugInner* mDebugInner; // PRBool mIsDebug; }; @@ -1794,6 +1796,7 @@ nsBoxFrameInner::UpdatePseudoElements(nsIPresContext& aPresContext) if (hs && vs) { if (!mDebugInner) { mDebugInner = new nsBoxDebugInner(mOuter); + NS_ADDREF(mDebugInner); mDebugInner->AddListener(); } mDebugInner->mHorizontalDebugStyle = hs; @@ -1803,6 +1806,7 @@ nsBoxFrameInner::UpdatePseudoElements(nsIPresContext& aPresContext) if (mDebugInner) { mDebugInner->RemoveListener(); + NS_RELEASE(mDebugInner); mDebugInner = nsnull; } }