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:
adnano 2024-03-17 07:01:23 -04:00
parent 4e151795bf
commit 6ad7a303ef

1
menu.c
View file

@ -740,7 +740,6 @@ void menu_destroy(struct menu *menu) {
wl_data_device_destroy(menu->data_device);
wl_surface_destroy(menu->surface);
zwlr_layer_surface_v1_destroy(menu->layer_surface);
wl_data_offer_destroy(menu->data_offer);
free_pages(menu);
free_items(menu);