fix refleak in dzsave

This commit is contained in:
John Cupitt 2019-12-21 04:46:16 +00:00
parent 9d05251f7e
commit 4b0c2924ab
1 changed files with 2 additions and 0 deletions

View File

@ -1594,12 +1594,14 @@ strip_work( VipsThreadState *state, void *a )
g_mutex_unlock( vips__global_lock );
if( write_image( dz, out, x, dz->suffix ) ) {
g_object_unref( out );
g_object_unref( x );
return( -1 );
}
g_object_unref( out );
g_object_unref( x );
#ifdef DEBUG_VERBOSE
printf( "strip_work: success\n" );