mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
r=dbaron, sr=tor XLIB only - Checkin for Roland.Mainz@informatik.med.uni-giessen.de - crash shutting down
This commit is contained in:
parent
16e9e5348c
commit
378ff64729
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user