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

util: fix leak in setstyle (Coverity #50151+#50152)

As pointed by Coverity, there are a few cases where the list of the keys
of a dictionary is being requested, but at the end the array that was
created to hold these keys was not freed.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-06-16 20:15:19 +02:00
committed by Carlos R. Mafra
parent 2e7ca448ae
commit 75511e2ec8

View File

@@ -203,6 +203,7 @@ static void hackPaths(WMPropList * style, const char *prefix)
} }
} }
WMReleasePropList(keys);
} }
static WMPropList *getColor(WMPropList * texture) static WMPropList *getColor(WMPropList * texture)
@@ -313,6 +314,7 @@ static void hackStyle(WMPropList * style)
} }
} }
} }
WMReleasePropList(keys);
if (!foundIconTitle) { if (!foundIconTitle) {
/* set the default values */ /* set the default values */