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:
@@ -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
|
||||
|
||||
@@ -238,6 +238,7 @@ nsFrameImageLoader::DamageRepairFrame()
|
||||
}
|
||||
gXXXInstalledColorMap = PR_TRUE;
|
||||
}
|
||||
NS_RELEASE(window);
|
||||
|
||||
// Determine damaged area and tell view manager to redraw it
|
||||
nsPoint offset;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user