From 2f8bc8e00f0f1a38e8fcb8a18458a44514b1a417 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Wed, 20 Oct 1999 08:35:36 +0000 Subject: [PATCH] Bug #16843 and #16832 where we were crashing when dismissing dialogs. this may not be the final fix but in an earlier change to this file today, this class stopped addreffing an event queue member variable. But the dtor still released a reference to the event queue that it didn't have! The eventual fix may be to put the addref back in there but I need to talk to dougt about this. this is real danm's fix. i'm the reviewer. git-svn-id: svn://10.0.0.236/trunk@51253 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/proxy/src/nsProxyEvent.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mozilla/xpcom/proxy/src/nsProxyEvent.cpp b/mozilla/xpcom/proxy/src/nsProxyEvent.cpp index 3b695df60c4..45435d32571 100644 --- a/mozilla/xpcom/proxy/src/nsProxyEvent.cpp +++ b/mozilla/xpcom/proxy/src/nsProxyEvent.cpp @@ -105,10 +105,7 @@ nsProxyObject::nsProxyObject(nsIEventQueue *destQueue, PRInt32 proxyType, const } nsProxyObject::~nsProxyObject() -{ - if (mDestQueue) - NS_RELEASE(mDestQueue); - +{ if(mRealObject) NS_RELEASE(mRealObject); }