masks : spot+batch dblclick with curve ...

fix some memoryleak
fix a rounding error whith inversed shape
fix double click when drawing a curve #9356
fix batch exporting with spot removal #9355