1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

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
2014-06-16 20:15:17 +02:00
committed by Carlos R. Mafra
parent b9eb99ca73
commit b5e2821c3e

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;
}