[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26914] trunk/blender/source/blender/ blenkernel/intern/colortools.c: Fix memory leak "dist table" in node curve mapping.
Brecht Van Lommel
brecht at blender.org
Mon Feb 15 10:13:07 CET 2010
Revision: 26914
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26914
Author: blendix
Date: 2010-02-15 10:13:07 +0100 (Mon, 15 Feb 2010)
Log Message:
-----------
Fix memory leak "dist table" in node curve mapping.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/colortools.c
Modified: trunk/blender/source/blender/blenkernel/intern/colortools.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/colortools.c 2010-02-15 09:03:22 UTC (rev 26913)
+++ trunk/blender/source/blender/blenkernel/intern/colortools.c 2010-02-15 09:13:07 UTC (rev 26914)
@@ -143,6 +143,7 @@
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 @@
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;
}
More information about the Bf-blender-cvs
mailing list