Merge pull request #367 from Keruspe/segv

unref the image *after* we used it
master
Tom 5 years ago committed by GitHub
commit d0fb333ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -388,8 +388,9 @@ func vipsInterpretationBuffer(buf []byte) (Interpretation, error) {
if err != nil {
return InterpretationError, err
}
interp := vipsInterpretation(image)
C.g_object_unref(C.gpointer(image))
return vipsInterpretation(image), nil
return interp, nil
}
func vipsInterpretation(image *C.VipsImage) Interpretation {

Loading…
Cancel
Save