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.
This commit is contained in:
Tobias Blass 2018-05-30 08:24:25 +02:00
parent 75f9feb6de
commit a21894a844
2 changed files with 0 additions and 2 deletions

View file

@ -372,6 +372,5 @@ int main(int argc, char *argv[]) {
} }
wl_display_run(display); wl_display_run(display);
wlr_renderer_destroy(state.renderer);
wl_display_destroy(display); wl_display_destroy(display);
} }

View file

@ -277,6 +277,5 @@ int main(int argc, char *argv[]) {
wl_display_run(display); wl_display_run(display);
wlr_texture_destroy(state.cat_texture); wlr_texture_destroy(state.cat_texture);
wlr_renderer_destroy(state.renderer);
wl_display_destroy(display); wl_display_destroy(display);
} }