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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2014-06-16 20:00:08 +01:00
1 parent b9eb99ca73
commit b5e2821c3e
1 file changed
-1
-1
View File
@@ -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;
}