Browse Source

svg.go -> do not Clone()

Viktor Sokolov 2 months ago
parent
commit
6ce8d8b338
1 changed files with 1 additions and 1 deletions
  1. 1 1
      svg/svg.go

+ 1 - 1
svg/svg.go

@@ -48,7 +48,7 @@ func Sanitize(data imagedata.ImageData) (imagedata.ImageData, error) {
 			newData := imagedata.NewFromBytesWithFormat(
 				imagetype.SVG,
 				buf.Bytes(),
-				data.Headers().Clone(),
+				data.Headers(),
 			)
 			newData.AddCancel(cancel)