Fixes allocation/deallcation mismatch. sr=darin, verified by stephend, b=149108

git-svn-id: svn://10.0.0.236/trunk@122702 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com 2002-06-04 21:48:53 +00:00
parent 7eb9837675
commit c4b7ad94e8

View File

@ -57,7 +57,7 @@ ReleaseDestructorEventHandler(PLEvent *self)
static void PR_CALLBACK
ReleaseDestructorDestroyHandler(PLEvent *self)
{
PR_DELETE(self);
delete self;
}
static void
@ -122,10 +122,10 @@ NS_IMETHODIMP_(nsrefcnt) _class::Release(void)
\
if (callDirectly) \
{ \
NS_DELETEXPCOM(this); \
NS_RELEASE(this); \
return 0; \
} \
PLEvent *event = PR_NEW(PLEvent); \
PLEvent *event = new PLEvent; \
if (event == nsnull) \
{ \
NS_ASSERTION(0, "Could not create a plevent. Deleting on wrong thread!"); \