From 4fbe322fa6fcdbfda6b7006869358fdb47caff6e Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 28 Aug 2017 11:07:54 -0400 Subject: fix memory errors --- examples/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/touch.c') diff --git a/examples/touch.c b/examples/touch.c index 7e8d9827..40fc4ca2 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -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; -- cgit v1.2.3