diff options
| author | Tobias Blass <tobiasblass@t-online.de> | 2018-05-30 01:12:34 +0200 |
|---|---|---|
| committer | Tobias Blass <tobiasblass@t-online.de> | 2018-05-30 01:12:34 +0200 |
| commit | 75f9feb6de74c7286c42c9bf0d71a2cca52295ae (patch) | |
| tree | 5967ea93f78cfd43a7ca4f4ec313f45b9c16072f | |
| parent | 87fe9f3466bddeef4b6fb288a52b6b3bd288b3c5 (diff) | |
| download | wlroots-75f9feb6de74c7286c42c9bf0d71a2cca52295ae.tar.xz | |
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.
| -rw-r--r-- | examples/rotation.c | 1 |
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); } |
