GPencil: Remove unused variable and fix memory leak

This was missing in previous commit
This commit is contained in:
Antonio Vazquez 2020-08-12 23:07:01 +02:00
parent c77bf95221
commit 1260baf16b
1 changed files with 0 additions and 2 deletions

View File

@ -584,8 +584,6 @@ static int gpencil_stroke_merge_material_exec(bContext *C, wmOperator *op)
const float val_threshold = RNA_float_get(op->ptr, "val_threshold");
/* Review materials. */
GHash *mat_table = BLI_ghash_int_new(__func__);
short *totcol = BKE_object_material_len_p(ob);
if (totcol == 0) {
return OPERATOR_CANCELLED;