Don't destroy wl_data_offer twice - wmenu - 🔧 fork of wmenu
(HTM) git clone git@git.drkhsh.at/wmenu.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6ad7a303ef2ff130b84cfa718ace423a3101dbbb
(DIR) parent 4e151795bf8f15e38999a42cb71ddc63423ffe12
(HTM) Author: adnano <me@adnano.co>
Date: Sun, 17 Mar 2024 07:01:23 -0400
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.
Diffstat:
M menu.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/menu.c b/menu.c
@@ -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);