зеркало из https://github.com/mozilla/pjs.git
Bug 28691: Fix existing leak that my fix for bug 16999 hilighted. r=harishd a=rickg
This commit is contained in:
Родитель
d605467cb7
Коммит
540a6cfd37
|
@ -814,9 +814,9 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
|
|||
*aResult = nsnull; // initialize OUT parameter
|
||||
|
||||
// Probe for the existence of the pseudo-element
|
||||
nsIStyleContext* pseudoStyleContext;
|
||||
nsCOMPtr<nsIStyleContext> pseudoStyleContext;
|
||||
aPresContext->ProbePseudoStyleContextFor(aContent, aPseudoElement, aStyleContext,
|
||||
PR_FALSE, &pseudoStyleContext);
|
||||
PR_FALSE, getter_AddRefs(pseudoStyleContext));
|
||||
|
||||
if (pseudoStyleContext) {
|
||||
const nsStyleDisplay* display;
|
||||
|
@ -934,7 +934,6 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
|
|||
}
|
||||
|
||||
NS_RELEASE(textStyleContext);
|
||||
NS_RELEASE(pseudoStyleContext);
|
||||
if (childFrames.childList) {
|
||||
containerFrame->SetInitialChildList(aPresContext, nsnull, childFrames.childList);
|
||||
}
|
||||
|
|
|
@ -814,9 +814,9 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
|
|||
*aResult = nsnull; // initialize OUT parameter
|
||||
|
||||
// Probe for the existence of the pseudo-element
|
||||
nsIStyleContext* pseudoStyleContext;
|
||||
nsCOMPtr<nsIStyleContext> pseudoStyleContext;
|
||||
aPresContext->ProbePseudoStyleContextFor(aContent, aPseudoElement, aStyleContext,
|
||||
PR_FALSE, &pseudoStyleContext);
|
||||
PR_FALSE, getter_AddRefs(pseudoStyleContext));
|
||||
|
||||
if (pseudoStyleContext) {
|
||||
const nsStyleDisplay* display;
|
||||
|
@ -934,7 +934,6 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
|
|||
}
|
||||
|
||||
NS_RELEASE(textStyleContext);
|
||||
NS_RELEASE(pseudoStyleContext);
|
||||
if (childFrames.childList) {
|
||||
containerFrame->SetInitialChildList(aPresContext, nsnull, childFrames.childList);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче