aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:17:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:17:53 +0000
commitaf8682210ec7b4f89f4d6a52fb568da9a4523d71 (patch)
tree7daedf090f1f7c9ba283b06eceeb3665ecdcf581
parentsearch: move wayland surface variables into the term struct (diff)
main: destroy sub-compositor at exit
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index e92996ef..18e2a19a 100644
--- a/main.c
+++ b/main.c
@@ -1064,6 +1064,8 @@ out:
wl_surface_destroy(term.wl.surface);
if (term.wl.shm != NULL)
wl_shm_destroy(term.wl.shm);
+ if (term.wl.sub_compositor != NULL)
+ wl_subcompositor_destroy(term.wl.sub_compositor);
if (term.wl.compositor != NULL)
wl_compositor_destroy(term.wl.compositor);
if (term.wl.registry != NULL)