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

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.cu...@free.fr>
---
 util/setstyle.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/setstyle.c b/util/setstyle.c
index 095c060..afd7b49 100644
--- a/util/setstyle.c
+++ b/util/setstyle.c
@@ -203,6 +203,7 @@ static void hackPaths(WMPropList * style, const char 
*prefix)
                }
        }
 
+       WMReleasePropList(keys);
 }
 
 static WMPropList *getColor(WMPropList * texture)
@@ -313,6 +314,7 @@ static void hackStyle(WMPropList * style)
                        }
                }
        }
+       WMReleasePropList(keys);
 
        if (!foundIconTitle) {
                /* set the default values */
-- 
1.9.2


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

Reply via email to