From f665eca50bc92bd27a674ca012f855ad9eb64043 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Wed, 26 Apr 2000 21:47:45 +0000 Subject: [PATCH] Fixing mismatched addref/release pair --- layout/generic/nsObjectFrame.cpp | 1 + layout/html/base/src/nsObjectFrame.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index 758436c8b6bf..711843fc342b 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -325,6 +325,7 @@ nsObjectFrame::Destroy(nsIPresContext* aPresContext) { inst->SetWindow(nsnull); inst->Stop(); + NS_RELEASE(inst); } } return nsObjectFrameSuper::Destroy(aPresContext); diff --git a/layout/html/base/src/nsObjectFrame.cpp b/layout/html/base/src/nsObjectFrame.cpp index 758436c8b6bf..711843fc342b 100644 --- a/layout/html/base/src/nsObjectFrame.cpp +++ b/layout/html/base/src/nsObjectFrame.cpp @@ -325,6 +325,7 @@ nsObjectFrame::Destroy(nsIPresContext* aPresContext) { inst->SetWindow(nsnull); inst->Stop(); + NS_RELEASE(inst); } } return nsObjectFrameSuper::Destroy(aPresContext);