Skip to content

Commit

Permalink
Removes redundant unref
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbyttow committed Aug 28, 2018
1 parent 4b382b2 commit b66f7b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/vips/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func vipsPrepareForExport(input *C.VipsImage, params *ExportParams) (*C.VipsImag
// Apply the proper colour space
if int(C.is_colorspace_supported(input)) == 1 && interpretation != input.Type {
var out *C.VipsImage
defer C.g_object_unref(C.gpointer(input))
err := C.to_colorspace(input, &out, interpretation)
if int(err) != 0 {
return nil, handleVipsError()
Expand Down

0 comments on commit b66f7b4

Please sign in to comment.