Signed-off-by: Eirik Byrkjeflot Anonsen <[email protected]>
---
xprop.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/xprop.c b/xprop.c
index 3b24746..a593ce4 100644
--- a/xprop.c
+++ b/xprop.c
@@ -749,10 +749,14 @@ is_utf8_locale (void)
static const char *
Format_Icons (const unsigned long *icon, int len)
{
- char *result = NULL, *tail = NULL;
+ static char *result = NULL;
+ char *tail = NULL;
int alloced;
const unsigned long *end = icon + len / sizeof (unsigned long);
+ free(result);
+ result = NULL;
+
alloced = 0;
while (icon < end)
--
2.1.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel