From: Christophe CURIS <christophe.cu...@free.fr>

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 <christophe.cu...@free.fr>
---
 util/wmsetbg.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/util/wmsetbg.c b/util/wmsetbg.c
index 785aa1b..b363c20 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;
                }
-- 
1.9.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to