aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-compositor.c
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2014-11-21 11:18:33 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-12-01 12:34:23 +0200
commite118c111783f89635986fecdd7990ce7dcb1363b (patch)
treef5d167816b6cc9a9c2c03dc9b6e0333e8d3dee77 /tests/test-compositor.c
parenttests: split queue-test testcases (diff)
downloadwayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar.gz
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar.bz2
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar.lz
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar.xz
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.tar.zst
wayland-e118c111783f89635986fecdd7990ce7dcb1363b.zip
tests: fix memory leak
We didn't free the struct client that we got from client_connect() Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/test-compositor.c')
-rw-r--r--tests/test-compositor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-compositor.c b/tests/test-compositor.c
index 3248e2d..6f86a85 100644
--- a/tests/test-compositor.c
+++ b/tests/test-compositor.c
@@ -452,6 +452,7 @@ client_disconnect(struct client *c)
wl_proxy_destroy((struct wl_proxy *) c->tc);
wl_display_disconnect(c->wl_display);
+ free(c);
}
/* num is number of clients that requests to stop display.