From a604ed0068a0e23c133f3aad5cf0d697336192c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 25 Aug 2022 10:52:36 +1000 Subject: Fix accessing freed memory for GHOST/Wayland clipboard access --- intern/ghost/intern/GHOST_SystemWayland.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index df9f2a899e0..57b1a9bb434 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -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) { -- cgit v1.2.3