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
This commit is contained in:
Giovanni Campagna 2014-05-07 18:27:04 +02:00
parent 098c8908ed
commit ea354e96cb

View File

@ -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;
}