From bd89bd9e1c49369d9d08bf262602a7520cec7123 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 4 Aug 2013 03:00:04 +0000 Subject: avoid using MEM_reallocN_id directly, add utility macro for freeing. --- source/blender/blenkernel/intern/fmodifier.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/intern/fmodifier.c') 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; -- cgit v1.2.3