diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-14 11:01:51 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-14 11:01:51 +0300 |
commit | c654a922376aae692b643a03e0864ea22841272b (patch) | |
tree | 1d58a0627387aa7a692f21b0e055949f25fca2e3 | |
parent | c1d295e905f9fb4a05218bf2db674e7739b179a6 (diff) |
Fix use after free error in 827fa8176737f822b7f8d2354b05e59976c7101a
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index 49342110df7..caf65f477a1 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -843,7 +843,7 @@ static void data_device_drop(void *data, struct wl_data_device * /*wl_data_devic data_offer_t *data_offer, wl_surface *surface, const std::string mime_receive) { - const wl_fixed_t *xy = data_offer->dnd.xy; + const wl_fixed_t xy[2] = {data_offer->dnd.xy[0], data_offer->dnd.xy[1]}; const std::string data = read_pipe(data_offer, mime_receive, nullptr); |