Fix accessing freed memory for GHOST/Wayland clipboard access

This commit is contained in:
Campbell Barton 2022-08-25 10:52:36 +10:00
parent 87e8810dd0
commit a604ed0068
1 changed files with 1 additions and 0 deletions

View File

@ -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) {