[Bf-blender-cvs] [6af963ca811] master: Fix leak when the cursor leaves the window while dragging in Wayland
Campbell Barton
noreply at git.blender.org
Thu Aug 4 14:34:21 CEST 2022
Commit: 6af963ca811037cfd4e7e91577dd6e3bb8d42430
Author: Campbell Barton
Date: Thu Aug 4 22:33:28 2022 +1000
Branches: master
https://developer.blender.org/rB6af963ca811037cfd4e7e91577dd6e3bb8d42430
Fix leak when the cursor leaves the window while dragging in 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 627b97a9190..af841d16dc6 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -1139,6 +1139,7 @@ static void data_device_handle_enter(void *data,
input_t *input = static_cast<input_t *>(data);
std::lock_guard lock{input->data_offer_dnd_mutex};
+ delete input->data_offer_dnd;
input->data_offer_dnd = static_cast<data_offer_t *>(wl_data_offer_get_user_data(id));
data_offer_t *data_offer = input->data_offer_dnd;
More information about the Bf-blender-cvs
mailing list