Fix accessing freed memory for GHOST/Wayland clipboard access
This commit is contained in:
parent
87e8810dd0
commit
a604ed0068
|
@ -1325,6 +1325,7 @@ static void data_device_handle_selection(void *data,
|
|||
wl_data_offer_destroy(data_offer->id);
|
||||
delete data_offer;
|
||||
data_offer = nullptr;
|
||||
input->data_offer_copy_paste = nullptr;
|
||||
}
|
||||
|
||||
if (id == nullptr) {
|
||||
|
|
Loading…
Reference in New Issue