diff options
author | Dan Eicher <dan@eu.phorio.us> | 2013-01-31 03:54:49 +0400 |
---|---|---|
committer | Dan Eicher <dan@eu.phorio.us> | 2013-01-31 03:54:49 +0400 |
commit | d7623c0e161297a66c44bf54e38a0db4c2d59942 (patch) | |
tree | 32821800916b328f09eabbb6e3d72319ad4005f5 /source/blender/makesrna | |
parent | b53c6c180ec96e320758f4a702eb0ab5725617b2 (diff) |
GPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c index b3c1f4dd505..9461a816652 100644 --- a/source/blender/makesrna/intern/rna_gpencil.c +++ b/source/blender/makesrna/intern/rna_gpencil.c @@ -118,7 +118,7 @@ static void rna_GPencil_stroke_point_add(bGPDstroke *stroke, int count) if (stroke->points == NULL) stroke->points = MEM_callocN(sizeof(bGPDspoint) * count, "gp_stroke_points"); else - stroke->points = MEM_reallocN(stroke->points, sizeof(bGPDspoint) * (stroke->totpoints + count)); + stroke->points = MEM_recallocN(stroke->points, sizeof(bGPDspoint) * (stroke->totpoints + count)); stroke->totpoints += count; } |