[Bf-blender-cvs] [409c62aa618] master: Fix missing free for drag & drop data with GHOST/Wayland

Campbell Barton noreply at git.blender.org
Thu Jun 16 04:30:26 CEST 2022


Commit: 409c62aa6182a691cd0fa4734b3a4d6192d9bf64
Author: Campbell Barton
Date:   Thu Jun 16 12:29:20 2022 +1000
Branches: master
https://developer.blender.org/rB409c62aa6182a691cd0fa4734b3a4d6192d9bf64

Fix missing free for drag & drop data with GHOST/Wayland

===================================================================

M	intern/ghost/intern/GHOST_SystemWayland.cpp

===================================================================

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;



More information about the Bf-blender-cvs mailing list