xfree86: fix up leftover allocation of xf86Events.
Thanks to Eamon Walsh for spotting this.
This commit is contained in:
parent
bcc88a1d46
commit
32a7bbbba6
|
@ -131,7 +131,7 @@ xf86ProcessCommonOptions(LocalDevicePtr local,
|
||||||
local->history_size = GetMotionHistorySize();
|
local->history_size = GetMotionHistorySize();
|
||||||
/* Preallocate xEvent store */
|
/* Preallocate xEvent store */
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
xf86Events = (xEvent *)xcalloc(sizeof(xEvent), GetMaximumEventsNum());
|
GetEventList(&xf86Events);
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
FatalError("Couldn't allocate event store\n");
|
FatalError("Couldn't allocate event store\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue