From 557bc5f6b4ebd9b5b65f4c30badd9696a5cd6efc Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Sun, 2 Aug 2020 10:16:55 -0400 Subject: [PATCH] Don't check g_signal_connect()'s return --- cplusplus/include/vips/VImage8.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index b2f29c28..e77e726a 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -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 ) ); }