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:
committed by
Carlos R. Mafra
parent
54feb499cb
commit
8ed6eacd06
@@ -1624,6 +1624,8 @@ 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)) {
|
||||
|
||||
Reference in New Issue
Block a user