aboutsummaryrefslogtreecommitdiff
path: root/examples/tablet.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/tablet.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/tablet.c')
-rw-r--r--examples/tablet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/tablet.c b/examples/tablet.c
index f5c4bbb5..e734ca84 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);
}