Fix gdk_x11_display_text_property_to_text_list

This was an incomplete attempt to get rid of the custom free function.
Lets just keep it for now. Bug 637849, patch by Dan Winship.

Also add a test case for this function.
This commit is contained in:
Matthias Clasen
2010-12-24 16:27:31 -05:00
parent 92f163d40a
commit 29eb3fba5f
3 changed files with 52 additions and 2 deletions

View File

@ -340,7 +340,7 @@ _gdk_x11_display_send_selection_notify (GdkDisplay *display,
* @format: the format of the property
* @text: The text data
* @length: The number of items to transform
* @list: location to store a terminated array of strings in
* @list: location to store an array of strings in
* the encoding of the current locale. This array should be
* freed using gdk_free_text_list().
*
@ -385,7 +385,7 @@ gdk_x11_display_text_property_to_text_list (GdkDisplay *display,
else
{
if (list)
*list = g_strdupv (local_list);
*list = local_list;
else
XFreeStringList (local_list);