[Bf-blender-cvs] [44a9c392290] blender2.8: Workbench: Fix use of uninitialized memory.
Clément Foucault
noreply at git.blender.org
Mon Jul 16 20:08:19 CEST 2018
Commit: 44a9c392290320b7ff1d439af75d073360386c1b
Author: Clément Foucault
Date: Mon Jul 16 15:02:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB44a9c392290320b7ff1d439af75d073360386c1b
Workbench: Fix use of uninitialized memory.
===================================================================
M source/blender/draw/engines/workbench/workbench_forward.c
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c
index 3fb68654188..e0e0bdea0f5 100644
--- a/source/blender/draw/engines/workbench/workbench_forward.c
+++ b/source/blender/draw/engines/workbench/workbench_forward.c
@@ -247,10 +247,10 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
if (!stl->g_data) {
/* Alloc transient pointers */
- stl->g_data = MEM_mallocN(sizeof(*stl->g_data), __func__);
+ stl->g_data = MEM_callocN(sizeof(*stl->g_data), __func__);
}
if (!stl->effects) {
- stl->effects = MEM_mallocN(sizeof(*stl->effects), __func__);
+ stl->effects = MEM_callocN(sizeof(*stl->effects), __func__);
workbench_effect_info_init(stl->effects);
}
WORKBENCH_PrivateData *wpd = stl->g_data;
More information about the Bf-blender-cvs
mailing list