From d4891505d1fd9834616e467a8f0a928cbfc63233 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Tue, 29 Aug 2000 23:27:09 +0000 Subject: [PATCH] Fix memory leak introduced yesterday. r=harishd --- content/base/src/nsDocument.cpp | 1 - layout/base/src/nsDocument.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 572cb4f03d7..3877bf0704d 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -3852,7 +3852,6 @@ nsDocument::GetDTD(nsIDTD** aDTD) const if (NS_FAILED(rv)) return rv; if (!dtd) return NS_ERROR_FAILURE; - NS_ADDREF(dtd); // Wish again for mutable: NS_CONST_CAST(nsDocument* , this)->mDTD = dtd; } diff --git a/layout/base/src/nsDocument.cpp b/layout/base/src/nsDocument.cpp index 572cb4f03d7..3877bf0704d 100644 --- a/layout/base/src/nsDocument.cpp +++ b/layout/base/src/nsDocument.cpp @@ -3852,7 +3852,6 @@ nsDocument::GetDTD(nsIDTD** aDTD) const if (NS_FAILED(rv)) return rv; if (!dtd) return NS_ERROR_FAILURE; - NS_ADDREF(dtd); // Wish again for mutable: NS_CONST_CAST(nsDocument* , this)->mDTD = dtd; }