diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-01 17:34:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-01 17:34:51 +0300 |
commit | 864a53e276967359714723d6c3b700ae4dfb7f8c (patch) | |
tree | 61f02d5ffeb9bf0dc83d422a2a81979b412a6446 /source/blender/windowmanager/WM_types.h | |
parent | 9a6aba2a94dbaee818630c26232274dc2962c828 (diff) |
Fix gradient tool crash with recent changes
Having gesture automatic free memory isn't practical if this
has it's own allocations.
Add option not to free userdata.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 97f9257b4cb..f6049f10378 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -423,6 +423,7 @@ typedef struct wmGesture { /* free pointer to use for operator allocs (if set, its freed on exit)*/ void *userdata; + bool userdata_free; } wmGesture; /* ************** wmEvent ************************ */ |