clients: destroy wl_registry on exit
Plug an insignificant memory leak in demo programs that bother to clean
up at all.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index 12bc93d..c073330 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -676,6 +676,7 @@
if (display.compositor)
wl_compositor_destroy(display.compositor);
+ wl_registry_destroy(display.registry);
wl_display_flush(display.display);
wl_display_disconnect(display.display);