From 32a7bbbba6fec0535a8faa1d6d2ecebe786bcc81 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 24 Jun 2008 09:28:05 +0930 Subject: [PATCH] xfree86: fix up leftover allocation of xf86Events. Thanks to Eamon Walsh for spotting this. --- hw/xfree86/common/xf86Xinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }