From 7fd562da0d78bfed65be0987bf2a2919f03709b2 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Mon, 11 Dec 2000 21:55:47 +0000 Subject: [PATCH] delete thread log in main thread dtor. bug 54303 code=jonsmirl@mediaone.net r=me,dougt,brendan git-svn-id: svn://10.0.0.236/trunk@83495 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/threads/nsThread.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/xpcom/threads/nsThread.cpp b/mozilla/xpcom/threads/nsThread.cpp index 436fa063b1d..f5146d704f2 100644 --- a/mozilla/xpcom/threads/nsThread.cpp +++ b/mozilla/xpcom/threads/nsThread.cpp @@ -82,6 +82,12 @@ nsThread::~nsThread() PR_LOG(nsIThreadLog, PR_LOG_DEBUG, ("nsIThread %p destroyed\n", this)); +#if defined(PR_LOGGING) + if (this == gMainThread) { + delete nsIThreadLog; + nsIThreadLog = nsnull; + } +#endif } void