include debian/xsfbs/xsfbs.mk
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g
CFLAGS += -D_F_GESTURE_EXTENSION_
CFLAGS += -D_F_SUPPORT_PREFERRED_NAME_
#CFLAGS += -D_DEBUG_MT_SEQUENCE_
break;
case EV_KEY:
return;
- EvdevMultitouchProcessKeyEvent(pInfo, ev);
- break;
case EV_SYN:
#ifdef _DEBUG_MT_SEQUENCE_
if( ev->code == SYN_MT_REPORT )
GetMotionHistory,
#endif
GetMotionHistorySize(), Absolute))
+ {
+ free(atoms);
return !Success;
+ }
for (axis = ABS_X; axis <= ABS_MAX; axis++) {
int axnum = g_pEvdevMultitouch->axis_map[axis];
GetMotionHistory,
#endif
GetMotionHistorySize(), Relative))
+ {
+ free(atoms);
return !Success;
+ }
for (axis = REL_X; axis <= REL_MAX; axis++)
{
labels,
#endif
pEvdevMultitouch->btnmap))
+ {
+ free(labels);
return !Success;
+ }
free(labels);
return Success;
{
int i;
EvdevMultitouchPtr pEvdevMultitouch = pInfo->private;
- size_t len;
+ int len;
char name[1024] = {0};
unsigned long bitmask[NLONGS(EV_CNT)] = {0};
return Success;
error:
- if (pInfo->fd >= 0)
+ if ((pInfo) && (pInfo->fd >= 0))
close(pInfo->fd);
return rc;
}
if( !name )
{
+ EvdevMultitouchFreeInputOpts(input_options);
xf86DrvMsg(-1, X_ERROR, "[X11][%s] Failed to allocate memory !\n", __FUNCTION__);
return NULL;
}