diff options
author | wtc%netscape.com <devnull@localhost> | 2001-09-07 00:15:21 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-09-07 00:15:21 +0000 |
commit | ca1525eedbe6047ac1561cf2b5d2acb0910a40c6 (patch) | |
tree | 2a0216937ac6bcf18050219b15cbb8ce1604add7 | |
parent | 9d820d633548c689d29dc52b96818b85d9eabcbb (diff) | |
download | nspr-hg-ca1525eedbe6047ac1561cf2b5d2acb0910a40c6.tar.gz |
Bugzilla bug 95817: destroy _pr_sleeplock in PR_Cleanup(). The patch is
contributed by jeff@NerdOne.com.
Modified files: prinit.c ptthread.c
-rw-r--r-- | pr/src/misc/prinit.c | 2 | ||||
-rw-r--r-- | pr/src/pthreads/ptthread.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/pr/src/misc/prinit.c b/pr/src/misc/prinit.c index 38fe765a..35b1375f 100644 --- a/pr/src/misc/prinit.c +++ b/pr/src/misc/prinit.c @@ -447,6 +447,8 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup() * _PR_XXXCleanup() that we can call here. */ _PR_CleanupThreads(); + PR_DestroyLock(_pr_sleeplock); + _pr_sleeplock = NULL; _PR_CleanupLayerCache(); _PR_CleanupEnv(); _PR_CleanupStacks(); diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c index 36c0ae2a..264e28db 100644 --- a/pr/src/pthreads/ptthread.c +++ b/pr/src/pthreads/ptthread.c @@ -936,6 +936,8 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup() PR_DestroyLock(pt_book.ml); pt_book.ml = NULL; } _pt_thread_death(me); + PR_DestroyLock(_pr_sleeplock); + _pr_sleeplock = NULL; _PR_CleanupLayerCache(); _PR_CleanupEnv(); _pr_initialized = PR_FALSE; |