bump refcount in threadsafe release macro. bug 30666 r=warren

This commit is contained in:
danm%netscape.com 2000-03-06 21:10:46 +00:00
parent ae87603b76
commit b976efa3d2
2 changed files with 2 additions and 0 deletions

View File

@ -727,6 +727,7 @@ nsrefcnt _class::Release(void) \
count = PR_AtomicDecrement((PRInt32 *)&mRefCnt); \
NS_LOG_RELEASE(this, count, #_class); \
if (0 == count) { \
mRefCnt = 1; /* stabilize */ \
/* enable this to find non-threadsafe destructors: */ \
/* NS_ASSERT_OWNINGTHREAD(_class); */ \
NS_DELETEXPCOM(this); \

View File

@ -727,6 +727,7 @@ nsrefcnt _class::Release(void) \
count = PR_AtomicDecrement((PRInt32 *)&mRefCnt); \
NS_LOG_RELEASE(this, count, #_class); \
if (0 == count) { \
mRefCnt = 1; /* stabilize */ \
/* enable this to find non-threadsafe destructors: */ \
/* NS_ASSERT_OWNINGTHREAD(_class); */ \
NS_DELETEXPCOM(this); \