From d601c5ee197380f188088f0143f0f496303f0f43 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 1 Oct 2017 19:08:51 +0100 Subject: [PATCH] remmove extra null check see https://github.com/jcupitt/libvips/issues/761 --- cplusplus/VImage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cplusplus/VImage.cpp b/cplusplus/VImage.cpp index 93b2e56e..e04be4fa 100644 --- a/cplusplus/VImage.cpp +++ b/cplusplus/VImage.cpp @@ -465,8 +465,7 @@ VImage::call_option_string( const char *operation_name, operation_name ); if( !(operation = vips_operation_new( operation_name )) ) { - if( options ) - delete options; + delete options; throw( VError() ); }