зеркало из https://github.com/mozilla/pjs.git
Make destructors that exist only for MOZ_COUNT_DTOR be #ifdef NS_BUILD_REFCNT_LOGGING instead of #ifdef DEBUG so the leak stats on optimized builds are correct. r=waterson@netscape.com sr=brendan@mozilla.org b=62421
This commit is contained in:
Родитель
d8205f1a1f
Коммит
e1135922c9
|
@ -1029,18 +1029,18 @@ nsSpaceManager::DestroyFrameInfo(FrameInfo* aFrameInfo)
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// FrameInfo
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(FrameInfo);
|
||||
MOZ_DECL_CTOR_COUNTER(nsSpaceManager::FrameInfo);
|
||||
|
||||
nsSpaceManager::FrameInfo::FrameInfo(nsIFrame* aFrame, const nsRect& aRect)
|
||||
: mFrame(aFrame), mRect(aRect), mNext(0)
|
||||
{
|
||||
MOZ_COUNT_CTOR(FrameInfo);
|
||||
MOZ_COUNT_CTOR(nsSpaceManager::FrameInfo);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
nsSpaceManager::FrameInfo::~FrameInfo()
|
||||
{
|
||||
MOZ_COUNT_DTOR(FrameInfo);
|
||||
MOZ_COUNT_DTOR(nsSpaceManager::FrameInfo);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ protected:
|
|||
FrameInfo* mNext;
|
||||
|
||||
FrameInfo(nsIFrame* aFrame, const nsRect& aRect);
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
~FrameInfo();
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -917,7 +917,7 @@ nsFloaterCache::nsFloaterCache()
|
|||
MOZ_COUNT_CTOR(nsFloaterCache);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
nsFloaterCache::~nsFloaterCache()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsFloaterCache);
|
||||
|
|
|
@ -38,7 +38,7 @@ class nsFloaterCacheFreeList;
|
|||
class nsFloaterCache {
|
||||
public:
|
||||
nsFloaterCache();
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
~nsFloaterCache();
|
||||
#else
|
||||
~nsFloaterCache() { }
|
||||
|
|
|
@ -1029,18 +1029,18 @@ nsSpaceManager::DestroyFrameInfo(FrameInfo* aFrameInfo)
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// FrameInfo
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(FrameInfo);
|
||||
MOZ_DECL_CTOR_COUNTER(nsSpaceManager::FrameInfo);
|
||||
|
||||
nsSpaceManager::FrameInfo::FrameInfo(nsIFrame* aFrame, const nsRect& aRect)
|
||||
: mFrame(aFrame), mRect(aRect), mNext(0)
|
||||
{
|
||||
MOZ_COUNT_CTOR(FrameInfo);
|
||||
MOZ_COUNT_CTOR(nsSpaceManager::FrameInfo);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
nsSpaceManager::FrameInfo::~FrameInfo()
|
||||
{
|
||||
MOZ_COUNT_DTOR(FrameInfo);
|
||||
MOZ_COUNT_DTOR(nsSpaceManager::FrameInfo);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ protected:
|
|||
FrameInfo* mNext;
|
||||
|
||||
FrameInfo(nsIFrame* aFrame, const nsRect& aRect);
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
~FrameInfo();
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -917,7 +917,7 @@ nsFloaterCache::nsFloaterCache()
|
|||
MOZ_COUNT_CTOR(nsFloaterCache);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
nsFloaterCache::~nsFloaterCache()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsFloaterCache);
|
||||
|
|
|
@ -38,7 +38,7 @@ class nsFloaterCacheFreeList;
|
|||
class nsFloaterCache {
|
||||
public:
|
||||
nsFloaterCache();
|
||||
#ifdef DEBUG
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
~nsFloaterCache();
|
||||
#else
|
||||
~nsFloaterCache() { }
|
||||
|
|
Загрузка…
Ссылка в новой задаче