aboutsummaryrefslogtreecommitdiff
path: root/examples/touch.c
diff options
context:
space:
mode:
authorTobias Blass <tobiasblass@t-online.de>2018-05-30 08:24:25 +0200
committerTobias Blass <tobiasblass@t-online.de>2018-05-30 08:24:25 +0200
commita21894a844963f3b48d17caadf18b3371dab2da7 (patch)
tree272b598f0eae9f3ecfd8d58247520baf1d141a2c /examples/touch.c
parent75f9feb6de74c7286c42c9bf0d71a2cca52295ae (diff)
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.
Diffstat (limited to 'examples/touch.c')
-rw-r--r--examples/touch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/touch.c b/examples/touch.c
index 68f78a0a..0e77b48e 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);
}