WMaker: fix memory leak in the switchpanel backgroung image (Coverity #50131)
commit99400735303826db7fa0ed1f836abc157cb965e6
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 May 2014 19:46:38 +0000 (20 21:46 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 May 2014 20:29:56 +0000 (20 21:29 +0100)
treef492a4ec27c3236f14e041b1c357b52246a28266
parent7d48855077703d3537aee39f16634cc06f2ec272
WMaker: fix memory leak in the switchpanel backgroung image (Coverity #50131)

As pointed by Coverity, if the target width or height for the center ended
being <= 0 then the image created to contain the generated assemblage would
be leaked.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/switchpanel.c