Tweaked to avoid a crash in case bloat tracking is on but there is no bloat data to dump

This commit is contained in:
kipp%netscape.com 1999-10-08 23:39:57 +00:00
parent 8d52cf697b
commit bf334bfc2d
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ void
nsTraceRefcnt::DumpStatistics()
{
#ifdef NS_BUILD_REFCNT_LOGGING
if (!gTrackBloat) {
if (!gTrackBloat || !gBloatView) {
return;
}

View File

@ -289,7 +289,7 @@ void
nsTraceRefcnt::DumpStatistics()
{
#ifdef NS_BUILD_REFCNT_LOGGING
if (!gTrackBloat) {
if (!gTrackBloat || !gBloatView) {
return;
}