aboutsummaryrefslogtreecommitdiff
path: root/examples/rotation.c
diff options
context:
space:
mode:
authorTobias Blass <tobiasblass@t-online.de>2018-05-30 01:12:34 +0200
committerTobias Blass <tobiasblass@t-online.de>2018-05-30 01:12:34 +0200
commit75f9feb6de74c7286c42c9bf0d71a2cca52295ae (patch)
tree5967ea93f78cfd43a7ca4f4ec313f45b9c16072f /examples/rotation.c
parent87fe9f3466bddeef4b6fb288a52b6b3bd288b3c5 (diff)
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.
Diffstat (limited to 'examples/rotation.c')
-rw-r--r--examples/rotation.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/rotation.c b/examples/rotation.c
index bd39a21e..9e9e059a 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);
}