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 3b11a1d240
commit af1e7c7189
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()