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
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-07-20 16:22:45 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-07-20 16:23:00 +0300
commit9016a29f194194085acfd937f31b80be0f1b0c8e (patch)
tree745f818c4b791e0a49e11e4b1851a74e5321190d /source/blender/windowmanager
parent230f7d79ce3e82c27d91562558752fe4331b9dc2 (diff)
Fix T79107: Crash changing brush size in GPencil sculpt
Reviewed By: fclem Maniphest Tasks: T79107 Differential Revision: https://developer.blender.org/D8353
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index f0cd1add48b..d1f65b6271b 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2799,7 +2799,9 @@ static void radial_control_cancel(bContext *C, wmOperator *op)
* new value is displayed in sliders/numfields */
WM_event_add_notifier(C, NC_WINDOW, NULL);
- GPU_texture_free(rc->texture);
+ if (rc->texture != NULL) {
+ GPU_texture_free(rc->texture);
+ }
MEM_freeN(rc);
}