diff options
| author | Marek Chalupa <mchqwerty@gmail.com> | 2014-11-21 11:18:33 +0100 |
|---|---|---|
| committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-12-01 12:34:23 +0200 |
| commit | e118c111783f89635986fecdd7990ce7dcb1363b (patch) | |
| tree | f5d167816b6cc9a9c2c03dc9b6e0333e8d3dee77 /tests/test-compositor.c | |
| parent | tests: split queue-test testcases (diff) | |
| download | wayland-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.c | 1 |
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. |
