From aa64a059e47a68551e8d501e9a90d5f203ef2d1b Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Wed, 12 Aug 1998 04:09:43 +0000 Subject: [PATCH] Added release of row group context object git-svn-id: svn://10.0.0.236/trunk@7808 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/nsTableCell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/layout/html/table/src/nsTableCell.cpp b/mozilla/layout/html/table/src/nsTableCell.cpp index f5a8e0a20c4..15a8f395320 100644 --- a/mozilla/layout/html/table/src/nsTableCell.cpp +++ b/mozilla/layout/html/table/src/nsTableCell.cpp @@ -285,6 +285,7 @@ void nsTableCell::MapAttributesInto(nsIStyleContext* aContext, textStyle = (nsStyleText*)aContext->GetMutableStyleData(eStyleStruct_Text); textStyle->mTextAlign = rowGroupAlign; } + NS_RELEASE(rowGroup); } } } @@ -325,6 +326,7 @@ void nsTableCell::MapAttributesInto(nsIStyleContext* aContext, textStyle = (nsStyleText*)aContext->GetMutableStyleData(eStyleStruct_Text); textStyle->mVerticalAlign.SetIntValue(rowGroupVAlign, eStyleUnit_Enumerated); } + NS_RELEASE(rowGroup); } } } @@ -409,6 +411,7 @@ nsTableCell::MapBackgroundAttributesInto(nsIStyleContext* aContext, color = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color); SetBackgroundFromAttribute(color, &value); } + NS_RELEASE(rowGroup); } } } @@ -483,6 +486,7 @@ nsTableCell::MapBackgroundAttributesInto(nsIStyleContext* aContext, color->mBackgroundFlags &= ~NS_STYLE_BG_COLOR_TRANSPARENT; } } + NS_RELEASE(rowGroup); } } }