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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-13 17:34:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-13 17:34:10 +0400
commitb938293576dd7eb2ca8d9149cfe2f9783883fbb1 (patch)
tree0094b7cee00b0093f30661a63d0a7977694b83c1
parenteb9f32776a0ee26654dd0665a0bb91d1a1126a06 (diff)
Fix memory leak reading mesh data after change to skip saving temporary
custom data layers.
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 7059cedc2dc..bcbc4c2638b 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4100,6 +4100,8 @@ static void direct_link_customdata(FileData *fd, CustomData *data, int count)
if (layer->flag & CD_FLAG_EXTERNAL)
layer->flag &= ~CD_FLAG_IN_MEMORY;
+
+ layer->flag &= ~CD_FLAG_NOFREE;
if (CustomData_verify_versions(data, i)) {
layer->data = newdataadr(fd, layer->data);