fix deprecation warning

This commit is contained in:
John Cupitt 2022-05-21 12:43:57 +01:00
parent bf614530cd
commit 2ef1b198fb

View File

@ -212,7 +212,9 @@ gsf_output_target_close( GsfOutput *output )
GsfOutputTarget *output_target = (GsfOutputTarget *) output; GsfOutputTarget *output_target = (GsfOutputTarget *) output;
if( output_target->target ) { if( output_target->target ) {
vips_target_finish( output_target->target ); /* No easy way to report errors here, sadly.
*/
(void) vips_target_end( output_target->target );
VIPS_UNREF( output_target->target ); VIPS_UNREF( output_target->target );
return( TRUE ); return( TRUE );
@ -227,7 +229,7 @@ gsf_output_target_finalize( GObject *obj )
GObjectClass *parent_class; GObjectClass *parent_class;
GsfOutputTarget *output_target = (GsfOutputTarget *) obj; GsfOutputTarget *output_target = (GsfOutputTarget *) obj;
gsf_output_target_close( GSF_OUTPUT( output_target ) ); (void) gsf_output_target_close( GSF_OUTPUT( output_target ) );
parent_class = g_type_class_peek( GSF_OUTPUT_TYPE ); parent_class = g_type_class_peek( GSF_OUTPUT_TYPE );
parent_class->finalize( obj ); parent_class->finalize( obj );