mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 08:15:24 +00:00
xfree86: fix up leftover allocation of xf86Events.
Thanks to Eamon Walsh for spotting this.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user