From 4203def1d10f8834df765bdfe6037c405e2a4526 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Mon, 21 Aug 2000 13:04:18 +0000 Subject: [PATCH] Add nsFontCache to leak and bloat stats. r=waterson --- gfx/src/nsDeviceContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/src/nsDeviceContext.cpp b/gfx/src/nsDeviceContext.cpp index e240174c80f7..e215904358dd 100644 --- a/gfx/src/nsDeviceContext.cpp +++ b/gfx/src/nsDeviceContext.cpp @@ -673,13 +673,17 @@ NS_IMETHODIMP DeviceContextImpl::GetPaletteInfo(nsPaletteInfo& aPaletteInfo) ///////////////////////////////////////////////////////////// +MOZ_DECL_CTOR_COUNTER(nsFontCache); + nsFontCache :: nsFontCache() { + MOZ_COUNT_CTOR(nsFontCache); mContext = nsnull; } nsFontCache :: ~nsFontCache() { + MOZ_COUNT_DTOR(nsFontCache); Flush(); }