missing unref in cpp binding
operation was not unreffed if build failed
This commit is contained in:
parent
bd9cc25278
commit
d78f87702d
@ -489,6 +489,7 @@ VImage::call_option_string( const char *operation_name,
|
|||||||
*/
|
*/
|
||||||
if( vips_cache_operation_buildp( &operation ) ) {
|
if( vips_cache_operation_buildp( &operation ) ) {
|
||||||
vips_object_unref_outputs( VIPS_OBJECT( operation ) );
|
vips_object_unref_outputs( VIPS_OBJECT( operation ) );
|
||||||
|
g_object_unref( operation );
|
||||||
delete options;
|
delete options;
|
||||||
throw( VError() );
|
throw( VError() );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user