bug 68472 - avoid crash on shutdown in xlib.

patch by Roland.Mainz@informatik.med.uni-giessen.de
r=blizzard, sr=shaver, a=roc+moz
Not part of build.
This commit is contained in:
bbaetz%cs.mcgill.ca 2001-04-22 19:05:22 +00:00
Родитель 96371cef8e
Коммит db59fb718a
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -111,6 +111,14 @@ void nsClipboard::Init() {
// selectionrequest
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");
if(ev == nsnull)
return nsEventStatus_eIgnore;
// Check the event type
if (ev->type == SelectionRequest) {