mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
fix memory errors
This commit is contained in:
parent
ab1a12b174
commit
4fbe322fa6
3 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue