ext/RMagick/rmimage.c in rmagick-4.1.2 vs ext/RMagick/rmimage.c in rmagick-4.2.0

- old
+ new

@@ -11658,12 +11658,15 @@ break; } exception = AcquireExceptionInfo(); #if defined(IMAGEMAGICK_7) - Image *preprocess = blurred_image(image, blur); + Image *preprocess = (argc == 4) ? blurred_image(image, blur) : image; new_image = ResizeImage(preprocess, columns, rows, filter, exception); - DestroyImage(preprocess); + if (argc == 4) + { + DestroyImage(preprocess); + } #else new_image = ResizeImage(image, columns, rows, filter, blur, exception); #endif rm_check_exception(exception, new_image, DestroyOnError);