mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Don't destroy wl_data_offer twice
The data offer is destroyed after it is used. There is no need to destroy it again. This also fixes an issue where calling wl_data_offer_destroy with a NULL data offer would segfault.
This commit is contained in:
parent
4e151795bf
commit
6ad7a303ef
1 changed files with 0 additions and 1 deletions
1
menu.c
1
menu.c
|
|
@ -740,7 +740,6 @@ void menu_destroy(struct menu *menu) {
|
||||||
wl_data_device_destroy(menu->data_device);
|
wl_data_device_destroy(menu->data_device);
|
||||||
wl_surface_destroy(menu->surface);
|
wl_surface_destroy(menu->surface);
|
||||||
zwlr_layer_surface_v1_destroy(menu->layer_surface);
|
zwlr_layer_surface_v1_destroy(menu->layer_surface);
|
||||||
wl_data_offer_destroy(menu->data_offer);
|
|
||||||
|
|
||||||
free_pages(menu);
|
free_pages(menu);
|
||||||
free_items(menu);
|
free_items(menu);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue