summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-01 15:45:45 -0700
committerKeith Packard <keithp@keithp.com>2011-07-01 15:45:45 -0700
commitd4096abb591353405417e53816e5c46e904e7b25 (patch)
tree156a4ea91e225565add01b850dbbd4f8bf68f603 /Xext
parent61f87a75f2bcda939a1778d39be8cfa5c886e6d8 (diff)
parent87d4f90bfcb509471ac9e7886e14a92b33223fd7 (diff)
Merge remote-tracking branch 'whot/for-keith'
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xtest.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index daa6430f1..cc675c116 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -679,12 +679,19 @@ GetXTestDevice(DeviceIntPtr master)
return NULL;
}
+static void
+XTestExtensionTearDown(ExtensionEntry *e)
+{
+ FreeEventList(xtest_evlist, GetMaximumEventsNum());
+ xtest_evlist = NULL;
+}
+
void
XTestExtensionInit(INITARGS)
{
AddExtension(XTestExtensionName, 0, 0,
ProcXTestDispatch, SProcXTestDispatch,
- NULL, StandardMinorOpcode);
+ XTestExtensionTearDown, StandardMinorOpcode);
xtest_evlist = InitEventList(GetMaximumEventsNum());
}