[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47280] branches/soc-2011-tomato/source/ blender/blenkernel/intern/mask.c: remove some redundant checks when freeing memory after rasterizing masks.

Peter Larabell xgl.asyliax at gmail.com
Thu May 31 16:29:10 CEST 2012


Revision: 47280
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47280
Author:   xglasyliax
Date:     2012-05-31 14:29:09 +0000 (Thu, 31 May 2012)
Log Message:
-----------
remove some redundant checks when freeing memory after rasterizing masks.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c	2012-05-31 14:03:25 UTC (rev 47279)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c	2012-05-31 14:29:09 UTC (rev 47280)
@@ -1826,14 +1826,10 @@
 					PLX_raskterize_feather((float (*)[2])diff_points, tot_diff_point,
 					                       (float (*)[2])diff_feather_points, tot_diff_feather_points,
 					                       buffer_tmp, width, height);
-				}
-
-				if (tot_diff_point) {
-					MEM_freeN(diff_points);
-				}
-				if (tot_diff_feather_points) {
 					MEM_freeN(diff_feather_points);
 				}
+
+				MEM_freeN(diff_points);
 			}
 		}
 




More information about the Bf-blender-cvs mailing list