From 75f9feb6de74c7286c42c9bf0d71a2cca52295ae Mon Sep 17 00:00:00 2001 From: Tobias Blass Date: Wed, 30 May 2018 01:12:34 +0200 Subject: [PATCH 1/2] Fix double-free in the rotation.c example. The wl_display_destroy function already destroys the backend's renderer. Freeing it by hand causes a segmentation fault. --- examples/rotation.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/rotation.c b/examples/rotation.c index bd39a21ea..9e9e059aa 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -268,6 +268,5 @@ int main(int argc, char *argv[]) { wl_display_run(display); wlr_texture_destroy(state.cat_texture); - wlr_renderer_destroy(state.renderer); wl_display_destroy(display); } From a21894a844963f3b48d17caadf18b3371dab2da7 Mon Sep 17 00:00:00 2001 From: Tobias Blass Date: Wed, 30 May 2018 08:24:25 +0200 Subject: [PATCH 2/2] Fix double-free in the tablet.c and touch.c examples The wl_display_destroy function already destroys the backend's renderer. Freeing it by hand causes a segmentation fault. --- examples/tablet.c | 1 - examples/touch.c | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/tablet.c b/examples/tablet.c index f5c4bbb50..e734ca847 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -372,6 +372,5 @@ int main(int argc, char *argv[]) { } wl_display_run(display); - wlr_renderer_destroy(state.renderer); wl_display_destroy(display); } diff --git a/examples/touch.c b/examples/touch.c index 68f78a0ad..0e77b48ed 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -277,6 +277,5 @@ int main(int argc, char *argv[]) { wl_display_run(display); wlr_texture_destroy(state.cat_texture); - wlr_renderer_destroy(state.renderer); wl_display_destroy(display); }