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>2010-02-15 12:13:07 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-02-15 12:13:07 +0300
commit38298d2c2215ca4c21f9b9cfa1f46b1ba126c2fe (patch)
tree4d27c8b03bf14c1c34183f4c6d4b6d0c1ee22a7d /source/blender/blenkernel/intern/colortools.c
parentf41660cfd0366fd512ddbf125a0ee57f22449bf2 (diff)
Fix memory leak "dist table" in node curve mapping.
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r--source/blender/blenkernel/intern/colortools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index ba145ddf548..71b497660e9 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -143,6 +143,7 @@ void curvemapping_free(CurveMapping *cumap)
for(a=0; a<CM_TOT; a++) {
if(cumap->cm[a].curve) MEM_freeN(cumap->cm[a].curve);
if(cumap->cm[a].table) MEM_freeN(cumap->cm[a].table);
+ if(cumap->cm[a].premultable) MEM_freeN(cumap->cm[a].premultable);
}
MEM_freeN(cumap);
}
@@ -159,6 +160,8 @@ CurveMapping *curvemapping_copy(CurveMapping *cumap)
cumapn->cm[a].curve= MEM_dupallocN(cumap->cm[a].curve);
if(cumap->cm[a].table)
cumapn->cm[a].table= MEM_dupallocN(cumap->cm[a].table);
+ if(cumap->cm[a].premultable)
+ cumapn->cm[a].premultable= MEM_dupallocN(cumap->cm[a].premultable);
}
return cumapn;
}