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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-30 14:00:58 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-30 14:00:58 +0300
commit93dc2d373fdd34ca64dff53b9d830052fb2aa749 (patch)
tree6520d44eaafed5b4aa3a820d252b918b647f3417 /source/blender
parent534573f6b9dc5e637bea18de3edcd0f22593666a (diff)
Fix (unreported) memleak when copying object and its material with GP settings.
Like... seriously?
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/object/object_add.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 462059262dd..25391251948 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2266,10 +2266,6 @@ static Base *object_add_duplicate_internal(Main *bmain, Scene *scene, ViewLayer
ID_NEW_REMAP_US(obn->mat[a])
else {
obn->mat[a] = ID_NEW_SET(obn->mat[a], BKE_material_copy(bmain, obn->mat[a]));
- /* duplicate grease pencil settings */
- if (ob->mat[a]->gp_style) {
- obn->mat[a]->gp_style = MEM_dupallocN(ob->mat[a]->gp_style);
- }
}
id_us_min(id);