diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 26689616211..dc9169cb67d 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -1170,6 +1170,7 @@ FindFrameWithContent(nsIFrame* aFrame, nsIContent* aContent) NS_IF_RELEASE(pseudoTag); if (!isPlaceholder) { + NS_IF_RELEASE(frameContent); return aFrame; } } diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index 26689616211..dc9169cb67d 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -1170,6 +1170,7 @@ FindFrameWithContent(nsIFrame* aFrame, nsIContent* aContent) NS_IF_RELEASE(pseudoTag); if (!isPlaceholder) { + NS_IF_RELEASE(frameContent); return aFrame; } }