From b5e2821c3e29fd04f56219243f91eeec43af4ea2 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 16 Jun 2014 20:15:17 +0200 Subject: [PATCH] util: removed unnecessary RReleaseImage in wmsetbg (Coverity #50077) As pointed by Coverity, it is not useful to call RReleaseImage if we are in the branch of code where we know that the image for which it is being called is NULL. Signed-off-by: Christophe CURIS --- util/wmsetbg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/util/wmsetbg.c b/util/wmsetbg.c index 785aa1ba..b363c201 100644 --- a/util/wmsetbg.c +++ b/util/wmsetbg.c @@ -646,7 +646,6 @@ static BackgroundTexture *parseTexture(RContext * rc, char *text) if (!gradient) { wwarning("could not render texture:%s", RMessageForError(RErrorCode)); - RReleaseImage(gradient); RReleaseImage(image); goto error; }