mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-14 05:34:56 -04:00
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>
This commit is contained in:
parent
3b7f9db591
commit
66bc781317
2 changed files with 14 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue