Some reference counting to make things go away...

git-svn-id: svn://10.0.0.236/trunk@4312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts
1998-06-23 18:40:18 +00:00
parent 037d815078
commit 333af92193
3 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -238,6 +238,7 @@ nsFrameImageLoader::DamageRepairFrame()
}
gXXXInstalledColorMap = PR_TRUE;
}
NS_RELEASE(window);
// Determine damaged area and tell view manager to redraw it
nsPoint offset;

View File

@@ -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