missing unref in cpp binding

operation was not unreffed if build failed
This commit is contained in:
John Cupitt 2016-07-29 15:09:53 +01:00
parent bd9cc25278
commit d78f87702d

View File

@ -489,6 +489,7 @@ VImage::call_option_string( const char *operation_name,
*/
if( vips_cache_operation_buildp( &operation ) ) {
vips_object_unref_outputs( VIPS_OBJECT( operation ) );
g_object_unref( operation );
delete options;
throw( VError() );
}