Don't check g_signal_connect()'s return

This commit is contained in:
Kyle Schwarz 2020-08-02 10:16:55 -04:00
parent fe815ff587
commit 557bc5f6b4
1 changed files with 2 additions and 3 deletions

View File

@ -560,9 +560,8 @@ public:
width, height, bands, format )) )
throw( VError() );
if( g_signal_connect( image, "postclose",
G_CALLBACK(vips_image_free_buffer), data) < 0 )
throw( VError() );
g_signal_connect( image, "postclose",
G_CALLBACK(vips_image_free_buffer), data);
return( VImage( image ) );
}