From 37fa578cf9b62a8ac21dde46b2d1d992a64b8148 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sun, 3 Feb 2019 19:44:15 +1100 Subject: [PATCH] remove a pointless NULL check from i_img_destroy() i_img_destroy() access the pointer twice before the check. --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index bd634ee1..1af1eaa7 100644 --- a/image.c +++ b/image.c @@ -289,7 +289,7 @@ i_img_destroy(i_img *im) { dIMCTXim(im); im_log((aIMCTX, 1,"i_img_destroy(im %p)\n",im)); i_img_exorcise(im); - if (im) { myfree(im); } + myfree(im); im_context_refdec(aIMCTX, "img_destroy"); } -- 2.39.5