xfree86: fix up leftover allocation of xf86Events.

Thanks to Eamon Walsh for spotting this.
This commit is contained in:
Peter Hutterer 2008-06-24 09:28:05 +09:30
parent bcc88a1d46
commit 32a7bbbba6

View File

@ -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");
}