tests: fix leak in events

Fixes all the ASan reported leaks in this test.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 3 years ago committed by Pekka Paalanen
parent 7c547e492c
commit d3acfd3b6b
  1. 7
      tests/event-test.c

@ -108,6 +108,8 @@ TEST(test_surface_output)
/* visible */ /* visible */
check_client_move(client, x, --y); check_client_move(client, x, --y);
assert(output_contains_client(client)); assert(output_contains_client(client));
client_destroy(client);
} }
static void static void
@ -176,4 +178,9 @@ TEST(buffer_release)
assert(buf1_released == 0); assert(buf1_released == 0);
assert(buf2_released == 1); assert(buf2_released == 1);
assert(buf3_released == 1); assert(buf3_released == 1);
buffer_destroy(buf1);
buffer_destroy(buf2);
buffer_destroy(buf3);
client_destroy(client);
} }

Loading…
Cancel
Save