Commit: a30128a3c1a2eb7767ec87b99a09f2893e1c5de7
Author: Campbell Barton
Date: Thu Oct 20 22:25:19 2022 +1100
Branches: master
https://developer.blender.org/rBa30128a3c1a2eb7767ec87b99a09f2893e1c5de7
Fix missing free in 8a43bfd8fd8d08438c5cc58befdf3e661aa17297
===================================================================
M intern/ghost/intern/GHOST_SystemWayland.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp
b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 42bfc6aa1e7..264476f00bc 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -1695,6 +1695,7 @@ static void data_device_handle_drop(void *data, struct
wl_data_device * /*wl_dat
size_t data_buf_len = 0;
const char *data_buf = read_pipe(data_offer, mime_receive, nullptr,
&data_buf_len);
std::string data = data_buf ? std::string(data_buf, data_buf_len) : "";
+ free(const_cast<char *>(data_buf));
CLOG_INFO(
LOG, 2, "drop_read_uris mime_receive=%s, data=%s",
mime_receive.c_str(), data.c_str());
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs