From ea354e96cb1ca07b4341db179f58f72b202303df Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 7 May 2014 18:27:04 +0200 Subject: [PATCH] xprops: free the text list content too A text list is an array of pointers into a buffer. Freeing the array is not enough, we need to free the buffer too. https://bugzilla.gnome.org/show_bug.cgi?id=729732 --- src/x11/xprops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/xprops.c b/src/x11/xprops.c index 0362ec180..35b37494a 100644 --- a/src/x11/xprops.c +++ b/src/x11/xprops.c @@ -753,7 +753,7 @@ text_property_to_utf8 (Display *xdisplay, ret = g_strdup (local_list[0]); out: - meta_XFree (local_list); + XFreeStringList (local_list); return ret; }