Remove unused pointer.

master
Shunsuke Michii 10 years ago
parent efeb6327b3
commit 5255b5389f

@ -170,8 +170,6 @@ func EncodeYUVA(w io.Writer, img *YUVAImage, c Config) (err error) {
}
pic.writer = C.WebPWriterFunction(C.writeWebP)
pic.custom_ptr = unsafe.Pointer(&destinationManager{writer: w})
if C.WebPEncode(webpConfig, pic) == 0 {
return fmt.Errorf("Encoding error: %d", pic.error_code)
}

Loading…
Cancel
Save