fix memory errors

This commit is contained in:
Tony Crisci 2017-08-28 11:07:54 -04:00
parent ab1a12b174
commit 4fbe322fa6
3 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
static void handle_touch_down(struct touch_state *tstate, int32_t slot,
double x, double y, double width, double height) {
struct sample_state *sample = tstate->compositor->data;
struct touch_point *point = calloc(1, sizeof(struct touch_state));
struct touch_point *point = calloc(1, sizeof(struct touch_point));
point->slot = slot;
point->x = x / width;
point->y = y / height;