From 0f38c8859bd909189b1d988c112aee9089a6533d Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Mon, 20 Sep 1999 22:35:06 +0000 Subject: [PATCH] Taking out the damn nsCOMPtr for nsThreadPool for Mac! --- xpcom/threads/nsThread.cpp | 2 ++ xpcom/threads/nsThread.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp index 699ac4a4b103..dacf328fe878 100644 --- a/xpcom/threads/nsThread.cpp +++ b/xpcom/threads/nsThread.cpp @@ -523,10 +523,12 @@ nsThreadPoolRunnable::nsThreadPoolRunnable(nsThreadPool* pool) { NS_INIT_REFCNT(); mPool = pool; + NS_ADDREF(pool); } nsThreadPoolRunnable::~nsThreadPoolRunnable() { + NS_RELEASE(mPool); } NS_IMPL_ISUPPORTS1(nsThreadPoolRunnable, nsIRunnable) diff --git a/xpcom/threads/nsThread.h b/xpcom/threads/nsThread.h index e7dc0424ef37..2946a1134e9b 100644 --- a/xpcom/threads/nsThread.h +++ b/xpcom/threads/nsThread.h @@ -108,7 +108,7 @@ public: virtual ~nsThreadPoolRunnable(); protected: - nsCOMPtr mPool; + nsThreadPool* mPool; };