Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron

This commit is contained in:
warren%netscape.com 2000-07-11 07:28:14 +00:00
parent 3abfebd3ec
commit ca180c6d4d
2 changed files with 6 additions and 2 deletions

View File

@ -1117,8 +1117,10 @@ PR_IMPLEMENT(void) NS_TraceMallocShutdown()
fp->fd = -1;
}
}
if (tmmon)
if (tmmon) {
PR_DestroyMonitor(tmmon);
tmmon = 0;
}
}
PR_IMPLEMENT(void) NS_TraceMallocDisable()

View File

@ -1117,8 +1117,10 @@ PR_IMPLEMENT(void) NS_TraceMallocShutdown()
fp->fd = -1;
}
}
if (tmmon)
if (tmmon) {
PR_DestroyMonitor(tmmon);
tmmon = 0;
}
}
PR_IMPLEMENT(void) NS_TraceMallocDisable()