[Bf-blender-cvs] [0b4c904] multiview: From review: image is calloc'ed, no need to initialize ListBases to NULL
Dalai Felinto
noreply at git.blender.org
Tue Nov 25 18:56:54 CET 2014
Commit: 0b4c9043e28df3f301cc0ef13c000de6181a3395
Author: Dalai Felinto
Date: Tue Nov 25 12:46:21 2014 -0200
Branches: multiview
https://developer.blender.org/rB0b4c9043e28df3f301cc0ef13c000de6181a3395
>From review: image is calloc'ed, no need to initialize ListBases to NULL
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index be970d1..90a32a2 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -369,9 +369,6 @@ static Image *image_alloc(Main *bmain, const char *name, short source, short typ
BKE_color_managed_colorspace_settings_init(&ima->colorspace_settings);
ima->stereo3d_format = MEM_callocN(sizeof(Stereo3dFormat), "Image Stereo Format");
- ima->anims.first = ima->anims.last = NULL;
- ima->packedfiles.first = ima->packedfiles.last = NULL;
- ima->views.first = ima->views.last = NULL;
}
return ima;
More information about the Bf-blender-cvs
mailing list