Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.

This commit is contained in:
Peter Hutterer
2008-06-10 22:41:43 +09:30
parent fec73e1418
commit b0f6987ee6

View File

@@ -1029,10 +1029,6 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
pInfo->always_core_feedback = 0;
pInfo->conf_idev = dev;
if (!(pEvdev = xcalloc(sizeof(*pEvdev), 1)))
return pInfo;
pInfo->private = pEvdev;
if (!(pEvdev = xcalloc(sizeof(EvdevRec), 1)))
return pInfo;