Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-04 07:00:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-04 07:00:04 +0400
commitbd89bd9e1c49369d9d08bf262602a7520cec7123 (patch)
treef0d3fe425cc057df4c0db2efe5571970060deb31 /source/blender/blenkernel/intern/fmodifier.c
parent5881fe5d679b38eb40b59c1af3bc3db88a53f35d (diff)
avoid using MEM_reallocN_id directly, add utility macro for freeing.
Diffstat (limited to 'source/blender/blenkernel/intern/fmodifier.c')
-rw-r--r--source/blender/blenkernel/intern/fmodifier.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/fmodifier.c b/source/blender/blenkernel/intern/fmodifier.c
index e0b4f94f0b7..f24edfea136 100644
--- a/source/blender/blenkernel/intern/fmodifier.c
+++ b/source/blender/blenkernel/intern/fmodifier.c
@@ -144,9 +144,8 @@ static void fcm_generator_verify(FModifier *fcm)
const int arraysize_new = data->poly_order + 1;
/* arraysize needs to be order+1, so resize if not */
if (data->arraysize != arraysize_new) {
- data->coefficients = MEM_recallocN_id(data->coefficients,
- sizeof(float) * arraysize_new,
- "FMod_Generator_Coefs");
+ data->coefficients = MEM_recallocN(data->coefficients,
+ sizeof(float) * arraysize_new);
data->arraysize = arraysize_new;
}
break;
@@ -156,9 +155,8 @@ static void fcm_generator_verify(FModifier *fcm)
const int arraysize_new = data->poly_order * 2;
/* arraysize needs to be (2 * order), so resize if not */
if (data->arraysize != arraysize_new) {
- data->coefficients = MEM_recallocN_id(data->coefficients,
- sizeof(float) * arraysize_new,
- "FMod_Generator_Coefs");
+ data->coefficients = MEM_recallocN(data->coefficients,
+ sizeof(float) * arraysize_new);
data->arraysize = arraysize_new;
}
break;