Fix T79107: Crash changing brush size in GPencil sculpt

Reviewed By: fclem

Maniphest Tasks: T79107

Differential Revision: https://developer.blender.org/D8353
This commit is contained in:
Antonio Vazquez 2020-07-20 15:22:45 +02:00
parent 230f7d79ce
commit 9016a29f19
Notes: blender-bot 2023-02-14 06:00:46 +01:00
Referenced by issue #79107, Crash changing Brush size in Grease Pencil
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}