remove some redundant checks when freeing memory after rasterizing masks.

This commit is contained in:
Peter Larabell
2012-05-31 14:29:09 +00:00
parent 65c8a33842
commit 0451dedf6f

View File

@@ -1826,14 +1826,10 @@ void BKE_mask_rasterize(Mask *mask, int width, int height, float *buffer)
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);
}
}