зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
96371cef8e
Коммит
db59fb718a
|
@ -111,6 +111,14 @@ void nsClipboard::Init() {
|
||||||
// selectionrequest
|
// selectionrequest
|
||||||
nsEventStatus PR_CALLBACK nsClipboard::Callback(nsGUIEvent *event) {
|
nsEventStatus PR_CALLBACK nsClipboard::Callback(nsGUIEvent *event) {
|
||||||
XEvent *ev = (XEvent *)event->nativeMsg;
|
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
|
// Check the event type
|
||||||
if (ev->type == SelectionRequest) {
|
if (ev->type == SelectionRequest) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче