mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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.
This commit is contained in:
parent
87fe9f3466
commit
75f9feb6de
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue