aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-26 11:34:49 +0200
committerGitHub <noreply@github.com>2018-04-26 11:34:49 +0200
commitfecb971518675254c26757c279ff971985cd2d2d (patch)
tree895833a5b0bf14b391d1c216afde4cbe095ed807 /backend
parent25dddc0094f5607c40f2ec502c5c2543b4e96163 (diff)
parent449f06556aa9550540c37af0cae0d6902b29f204 (diff)
Merge pull request #902 from emersion/various-memory-leaks
Various memory leaks
Diffstat (limited to 'backend')
-rw-r--r--backend/headless/backend.c1
-rw-r--r--backend/wayland/backend.c1
-rw-r--r--backend/x11/backend.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index 81b01376..1d29e12a 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -54,6 +54,7 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
wlr_signal_emit_safe(&wlr_backend->events.destroy, backend);
+ wlr_renderer_destroy(backend->renderer);
wlr_egl_finish(&backend->egl);
free(backend);
}
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c
index 03e56e22..8ad5ba15 100644
--- a/backend/wayland/backend.c
+++ b/backend/wayland/backend.c
@@ -88,6 +88,7 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
free(backend->seat_name);
wl_event_source_remove(backend->remote_display_src);
+ wlr_renderer_destroy(backend->renderer);
wlr_egl_finish(&backend->egl);
if (backend->seat) {
wl_seat_destroy(backend->seat);
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 4a615e67..35d037b0 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -239,6 +239,7 @@ static void backend_destroy(struct wlr_backend *backend) {
}
wl_list_remove(&x11->display_destroy.link);
+ wlr_renderer_destroy(x11->renderer);
wlr_egl_finish(&x11->egl);
if (x11->cursor) {