Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-04 15:33:28 +0300
committerCampbell Barton <campbell@blender.org>2022-08-04 15:33:28 +0300
commit6af963ca811037cfd4e7e91577dd6e3bb8d42430 (patch)
tree1deaf5220cab0e8c9d5cef6c8a6454c15a6ef812 /intern
parenta10cac413e3c612ce2aaa93cf71348df3966859c (diff)
Fix leak when the cursor leaves the window while dragging in Wayland
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp1
1 files changed, 1 insertions, 0 deletions
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;