From d78f87702da231c0aec2b93fff8a9a05bb2168b3 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 29 Jul 2016 15:09:53 +0100 Subject: [PATCH] missing unref in cpp binding operation was not unreffed if build failed --- cplusplus/VImage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cplusplus/VImage.cpp b/cplusplus/VImage.cpp index 30899e6c..c8dbdd69 100644 --- a/cplusplus/VImage.cpp +++ b/cplusplus/VImage.cpp @@ -489,6 +489,7 @@ VImage::call_option_string( const char *operation_name, */ if( vips_cache_operation_buildp( &operation ) ) { vips_object_unref_outputs( VIPS_OBJECT( operation ) ); + g_object_unref( operation ); delete options; throw( VError() ); }