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

Two WMColor were created to draw the background for the title on icons for
iconified windows, in the Appearance panel. As pointed by Coverity, these
colors were not released after use, which this patch fixes.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 WPrefs.app/Appearance.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c
index 25f1422..9e0e8a6 100644
--- a/WPrefs.app/Appearance.c
+++ b/WPrefs.app/Appearance.c
@@ -1624,7 +1624,9 @@ static void updateColorPreviewBox(_Panel * panel, int 
elements)
                             panel->smallFont, 155, 130, 64, 13, WALeft,
                             _("Icon Text"));
 
-          }
+               WMReleaseColor(light);
+               WMReleaseColor(dim);
+       }
 
        if (elements & (1 << CLIP_COL) || elements & (1 << CCLIP_COL)) {
                Pixmap pix;
-- 
2.1.1


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

Reply via email to