diff options
author | Tobias Blass <tobiasblass@t-online.de> | 2018-05-30 08:24:25 +0200 |
---|---|---|
committer | Tobias Blass <tobiasblass@t-online.de> | 2018-05-30 08:24:25 +0200 |
commit | a21894a844963f3b48d17caadf18b3371dab2da7 (patch) | |
tree | 272b598f0eae9f3ecfd8d58247520baf1d141a2c /examples | |
parent | 75f9feb6de74c7286c42c9bf0d71a2cca52295ae (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')
-rw-r--r-- | examples/tablet.c | 1 | ||||
-rw-r--r-- | examples/touch.c | 1 |
2 files changed, 0 insertions, 2 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); } 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); } |