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>2020-03-06 04:00:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-06 04:00:37 +0300
commitc19d2f2507a45d2a6da35dbe2ff842f71c2daae0 (patch)
treee092f7aa5f8c619223638466065534af79e74072 /source/blender/bmesh
parent8574d68aa0ea123bf3f37ca36fd41b7dcf26403f (diff)
Cleanup: use MEM_recallocN_id
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_operators.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c
index d4a3ecb73db..2ec7e06a264 100644
--- a/source/blender/bmesh/intern/bmesh_operators.c
+++ b/source/blender/bmesh/intern/bmesh_operators.c
@@ -740,11 +740,7 @@ void *bmo_slot_buffer_grow(BMesh *bm, BMOperator *op, int slot_code, int totadd)
allocsize = BMO_OPSLOT_TYPEINFO[bmo_opdefines[op->type]->slot_types[slot_code].type] *
slot->size;
-
- tmp = slot->data.buf;
- slot->data.buf = MEM_callocN(allocsize, "opslot dynamic array");
- memcpy(slot->data.buf, tmp, allocsize);
- MEM_freeN(tmp);
+ slot->data.buf = MEM_recallocN_id(slot->data.buf, allocsize, "opslot dynamic array");
}
slot->len += totadd;