diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-16 05:29:20 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-16 05:29:20 +0300 |
commit | 409c62aa6182a691cd0fa4734b3a4d6192d9bf64 (patch) | |
tree | ed94fe8448ca88b52e332bac2cc2e599cf6a5f24 | |
parent | 02012b0cce52c707321dc1b2942fa83d65128592 (diff) |
Fix missing free for drag & drop data with GHOST/Wayland
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |