From 0a4d8cbdcd7b25313fb29ccdb498044af95f7de6 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sun, 6 Jun 2010 15:28:30 +0700 Subject: Remove more superfluous if(p) checks around free(p) This patch has been generated by the following Coccinelle semantic patch: @@ expression E; @@ -if(E) { free(E); } +free(E); Signed-off-by: Mikhail Gusarov Reviewed-by: Julien Cristau Reviewed-by: Fernando Carrijo Reviewed-by: Matt Turner --- render/picture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'render/picture.c') diff --git a/render/picture.c b/render/picture.c index f55711d48..7fda6b93a 100644 --- a/render/picture.c +++ b/render/picture.c @@ -1524,8 +1524,7 @@ FreePicture (pointer value, if (--pPicture->refcnt == 0) { - if (pPicture->transform) - free(pPicture->transform); + free(pPicture->transform); if (pPicture->pSourcePict) { -- cgit v1.2.3