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

WPrefs: fix memory leaks on temporary colours to draw icon's title in Appearence preview (Coverity #72808, #72810)

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.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-11-29 16:35:29 +01:00
committed by Carlos R. Mafra
parent 54feb499cb
commit 8ed6eacd06

View File

@@ -1624,7 +1624,9 @@ static void updateColorPreviewBox(_Panel * panel, int elements)
panel->smallFont, 155, 130, 64, 13, WALeft, panel->smallFont, 155, 130, 64, 13, WALeft,
_("Icon Text")); _("Icon Text"));
} WMReleaseColor(light);
WMReleaseColor(dim);
}
if (elements & (1 << CLIP_COL) || elements & (1 << CCLIP_COL)) { if (elements & (1 << CLIP_COL) || elements & (1 << CCLIP_COL)) {
Pixmap pix; Pixmap pix;