r=dbaron, sr=tor
XLIB only - Checkin for Roland.Mainz@informatik.med.uni-giessen.de - crash shutting down
This commit is contained in:
mkaply%us.ibm.com 2001-07-22 13:24:51 +00:00
parent 16e9e5348c
commit 378ff64729
2 changed files with 2 additions and 5 deletions

View File

@ -112,11 +112,7 @@ void nsClipboard::Init() {
nsEventStatus PR_CALLBACK nsClipboard::Callback(nsGUIEvent *event) {
XEvent *ev = (XEvent *)event->nativeMsg;
/* gisburn: quick hack fix for bug 68472 to avoid crash on shutdown
* I simply assume that this only happens at shutdown...
* FIXME: We should fix&kill the real cause of this problem...
*/
NS_ASSERTION(ev != nsnull, "nsGUIEvent with event->nativeMsg==nsnull");
/* may be nsnull in the |event->message == NS_DESTROY| case... */
if(ev == nsnull)
return nsEventStatus_eIgnore;

View File

@ -1045,6 +1045,7 @@ PRBool nsWidget::DispatchDestroyEvent(void) {
PRBool result = PR_FALSE;
if (nsnull != mEventCallback) {
nsGUIEvent event;
event.nativeMsg = nsnull;
event.eventStructType = NS_GUI_EVENT;
event.message = NS_DESTROY;
event.widget = this;