summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-06-24 09:28:05 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-25 09:59:46 +0930
commit32a7bbbba6fec0535a8faa1d6d2ecebe786bcc81 (patch)
treeabf81f99d8db9ed4129025ed490db3d82843d27a
parentbcc88a1d46c7ba469c4e2861875f84f8c77d4b15 (diff)
xfree86: fix up leftover allocation of xf86Events.
Thanks to Eamon Walsh for spotting this.
-rw-r--r--hw/xfree86/common/xf86Xinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 675ec9f75..b98e903fa 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -131,7 +131,7 @@ xf86ProcessCommonOptions(LocalDevicePtr local,
local->history_size = GetMotionHistorySize();
/* Preallocate xEvent store */
if (!xf86Events)
- xf86Events = (xEvent *)xcalloc(sizeof(xEvent), GetMaximumEventsNum());
+ GetEventList(&xf86Events);
if (!xf86Events)
FatalError("Couldn't allocate event store\n");
}