From 48b55c6f3668caa372d75137c287933d7a705418 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Mon, 26 Apr 2004 23:19:50 +0000 Subject: [PATCH] Fix leak of content on all key and IME events. b=241591 r+sr=bryner git-svn-id: svn://10.0.0.236/trunk@155558 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 1 - mozilla/layout/html/base/src/nsPresShell.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index fb98bdb7a8f..e8421632352 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -5781,7 +5781,6 @@ PresShell::HandleEvent(nsIView *aView, NS_IF_RELEASE(mCurrentEventContent); esm->GetFocusedContent(&mCurrentEventContent); - NS_IF_ADDREF(mCurrentEventContent); esm->GetFocusedFrame(&mCurrentEventFrame); if (!mCurrentEventFrame) { diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index fb98bdb7a8f..e8421632352 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -5781,7 +5781,6 @@ PresShell::HandleEvent(nsIView *aView, NS_IF_RELEASE(mCurrentEventContent); esm->GetFocusedContent(&mCurrentEventContent); - NS_IF_ADDREF(mCurrentEventContent); esm->GetFocusedFrame(&mCurrentEventFrame); if (!mCurrentEventFrame) {