diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-04 09:11:31 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-04 09:24:04 +0300 |
commit | c5d3846b1026f2a60d3fdd6b61570adcb6c2a2cf (patch) | |
tree | 621695e8b69a6b42a91c50c6c7f4c10d10805a30 /source/blender/editors/sculpt_paint/sculpt_paint_color.c | |
parent | cbb897070d1e4f93c6a1ca107277944914a1ff51 (diff) |
Fix use-after-free error when handling events that close windows
Regression in [0] caused operations such as file-load or file-new
from any window besides the first to write into the freed:
`wmWindow.eventstate`.
Resolve by copying the event instead of restoring the region relative
cursor position after modifying it.
[0]: 789b1617f70e07f1c9bcb5253f1233acacbf6c8a
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_paint_color.c')
0 files changed, 0 insertions, 0 deletions