[Bf-blender-cvs] [33c581882b7] temp-lineart-contained: LineArt: Fix potentially NULL pending edge array.
YimingWu
noreply at git.blender.org
Wed Apr 20 05:09:11 CEST 2022
Commit: 33c581882b7be4ab2b4aa9a647f1391639c9bb4c
Author: YimingWu
Date: Wed Apr 20 11:08:29 2022 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rB33c581882b7be4ab2b4aa9a647f1391639c9bb4c
LineArt: Fix potentially NULL pending edge array.
===================================================================
M source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 3e19a0cad97..5d1c8111b88 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -3831,7 +3831,9 @@ static void lineart_destroy_render_data(LineartRenderBuffer *rb)
lineart_end_bounding_area_recursive(&rb->initial_bounding_areas[i]);
}
- MEM_freeN(rb->pending_edges.array);
+ if (rb->pending_edges.array) {
+ MEM_freeN(rb->pending_edges.array);
+ }
lineart_mem_destroy(&rb->render_data_pool);
}
More information about the Bf-blender-cvs
mailing list