From fb34e679c14c0e622fa1c36dcfec0ead53b8c3ad Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 21 Jan 2000 01:39:39 +0000 Subject: [PATCH] release widget addrefed during processing of mouse events. fixes leak which fixes crasher bugs 23652 and 24387. r:saari a:brendan. git-svn-id: svn://10.0.0.236/trunk@58341 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp index 06b834a23cc..1dc69d57901 100644 --- a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp @@ -3520,6 +3520,7 @@ nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *aEvent, PRInt32 aEven mFrame->SetFocus(); } } + NS_IF_RELEASE(event.widget); } } return result;