From 512bac25ec0e980968b93a2ebe88bd89bf99b697 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 6 Nov 2007 14:52:03 +0000 Subject: [PATCH] DIX: XKB: Set xkbInfo to NULL as well as freeing it (bug #10639) XkbRemoveResourceClient wants to access xkbInfo if it exists, so make sure we NULL it after freeing it. It doesn't make much sense to move the RemoveResourceClient call first, as there's not much point in notifying clients while we're shutting the server down anyway. --- dix/devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/devices.c b/dix/devices.c index 9798b97a6..3855c2b8b 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -528,6 +528,7 @@ CloseDevice(DeviceIntPtr dev) if (dev->key->xkbInfo) XkbFreeInfo(dev->key->xkbInfo); #endif + dev->key->xkbInfo = NULL; xfree(dev->key->curKeySyms.map); xfree(dev->key->modifierKeyMap); xfree(dev->key);