From 333af92193dc70bfbfc50068af792415c216b6b8 Mon Sep 17 00:00:00 2001 From: rpotts Date: Tue, 23 Jun 1998 18:40:18 +0000 Subject: [PATCH] Some reference counting to make things go away... git-svn-id: svn://10.0.0.236/trunk@4312 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresContext.cpp | 2 ++ mozilla/layout/base/src/nsFrameImageLoader.cpp | 1 + mozilla/layout/base/src/nsPresContext.cpp | 2 ++ 3 files changed, 5 insertions(+) diff --git a/mozilla/layout/base/nsPresContext.cpp b/mozilla/layout/base/nsPresContext.cpp index 0f4cd124d11..73810c0512c 100644 --- a/mozilla/layout/base/nsPresContext.cpp +++ b/mozilla/layout/base/nsPresContext.cpp @@ -224,6 +224,7 @@ nsPresContext::GetImageGroup(nsIImageGroup*& aGroupResult) mDeviceContext->GetAppUnitsToDevUnits()); rv = mImageGroup->Init(drawCtx); NS_RELEASE(drawCtx); + NS_RELEASE(window); if (NS_OK != rv) { return rv; } @@ -277,6 +278,7 @@ nsPresContext::LoadImage(const nsString& aURL, if (NS_OK != rv) { return rv; } + NS_RELEASE(group); } // We haven't seen that image before. Create a new loader and diff --git a/mozilla/layout/base/src/nsFrameImageLoader.cpp b/mozilla/layout/base/src/nsFrameImageLoader.cpp index e71401154af..9d1e5ee3f97 100644 --- a/mozilla/layout/base/src/nsFrameImageLoader.cpp +++ b/mozilla/layout/base/src/nsFrameImageLoader.cpp @@ -238,6 +238,7 @@ nsFrameImageLoader::DamageRepairFrame() } gXXXInstalledColorMap = PR_TRUE; } + NS_RELEASE(window); // Determine damaged area and tell view manager to redraw it nsPoint offset; diff --git a/mozilla/layout/base/src/nsPresContext.cpp b/mozilla/layout/base/src/nsPresContext.cpp index 0f4cd124d11..73810c0512c 100644 --- a/mozilla/layout/base/src/nsPresContext.cpp +++ b/mozilla/layout/base/src/nsPresContext.cpp @@ -224,6 +224,7 @@ nsPresContext::GetImageGroup(nsIImageGroup*& aGroupResult) mDeviceContext->GetAppUnitsToDevUnits()); rv = mImageGroup->Init(drawCtx); NS_RELEASE(drawCtx); + NS_RELEASE(window); if (NS_OK != rv) { return rv; } @@ -277,6 +278,7 @@ nsPresContext::LoadImage(const nsString& aURL, if (NS_OK != rv) { return rv; } + NS_RELEASE(group); } // We haven't seen that image before. Create a new loader and