Fix possible memory leak where spline differentiation fails but feather differentiation does not.

This commit is contained in:
Peter Larabell
2012-05-31 14:36:22 +00:00
parent 0451dedf6f
commit f7fb32fb8a

View File

@@ -1790,7 +1790,9 @@ void BKE_mask_rasterize(Mask *mask, int width, int height, float *buffer)
int tot_diff_feather_points;
diff_points = BKE_mask_spline_differentiate(spline, &tot_diff_point);
diff_feather_points = BKE_mask_spline_feather_differentiated_points(spline, &tot_diff_feather_points);
if(tot_diff_point){
diff_feather_points = BKE_mask_spline_feather_differentiated_points(spline, &tot_diff_feather_points);
}
/* TODO, make this optional! */
if (width != height) {