authorAdam Jackson <>2008-12-01 16:36:06 (GMT)
committer Adam Jackson <>2008-12-01 16:36:06 (GMT)
commitb0d371ab0a6efd4956c3677faa20b2ac15c33765 (patch) (side-by-side diff)
parent16b11cd03d8c5def07f0e598f237f71a37883a46 (diff)
randr: Don't send output property events on server exit
If the Window resource type is already gone, there's no point in trying to send events, all it can do is access already-freed memory. Relevant thread:
Diffstat (more/less context) (ignore whitespace changes)
1 files changed, 2 insertions, 1 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index decf6cb..b2d4146 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -59,7 +59,8 @@ DeliverPropertyEvent(WindowPtr pWin, void *value)
static void RRDeliverPropertyEvent(ScreenPtr pScreen, xEvent *event)
- WalkTree(pScreen, DeliverPropertyEvent, event);
+ if (!(dispatchException & (DE_RESET | DE_TERMINATE)))
+ WalkTree(pScreen, DeliverPropertyEvent, event);
_X_EXPORT void