소스 검색

svg.go -> do not Clone()

Viktor Sokolov 2 달 전
부모
커밋
6ce8d8b338
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)