From 409c62aa6182a691cd0fa4734b3a4d6192d9bf64 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 16 Jun 2022 12:29:20 +1000 Subject: Fix missing free for drag & drop data with GHOST/Wayland --- intern/ghost/intern/GHOST_SystemWayland.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index b59adef1724..15aa379c531 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -270,6 +270,10 @@ static void display_destroy(display_t *d) } delete input->data_source; } + if (input->data_offer_dnd) { + wl_data_offer_destroy(input->data_offer_dnd->id); + delete input->data_offer_dnd; + } if (input->data_offer_copy_paste) { wl_data_offer_destroy(input->data_offer_copy_paste->id); delete input->data_offer_copy_paste; -- cgit v1.2.3