mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron
This commit is contained in:
parent
3abfebd3ec
commit
ca180c6d4d
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user