Bug 65146. Fix deadlock potential in proxy code; remove unncessary locks from nsPipe2. r=darin,dougt; sr=brendan

git-svn-id: svn://10.0.0.236/trunk@86858 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2001-02-12 23:33:11 +00:00
parent c2a7e86a14
commit 214693cd4a
2 changed files with 6 additions and 4 deletions

View File

@@ -296,10 +296,7 @@ nsProxyObject::Release(void)
ProxyDestructorEventHandler,
ProxyDestructorDestroyHandler);
// fire it off.
mDestQueue->PostSynchronousEvent(event, nsnull);
PR_DELETE(event);
mDestQueue->PostEvent(event);
return 0;
}
return mRefCnt;
@@ -540,5 +537,6 @@ static void* ProxyDestructorEventHandler(PLEvent *self)
static void ProxyDestructorDestroyHandler(PLEvent *self)
{
PR_DELETE(self);
}