free the result of gdk_text_property_to_utf8_list() even when it returns

* src/ui/ui.c: free the result of gdk_text_property_to_utf8_list()
          even when it returns no data.


svn path=/trunk/; revision=4093
This commit is contained in:
Thomas James Alexander Thurman 2009-01-28 02:00:33 +00:00
parent a6c951352f
commit 1381f6d5f2
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-01-27 Matthias Claesen <mclasen@redhat.com>
* src/ui/ui.c: free the result of gdk_text_property_to_utf8_list()
even when it returns no data.
2009-01-27 Owen Taylor <otaylor@redhat.com>
GtkStyle is specific to a particular colormap. Metacity

View File

@ -671,10 +671,12 @@ meta_text_property_to_utf8 (Display *xdisplay,
&list);
if (count == 0)
return NULL;
retval = NULL;
else
{
retval = list[0];
list[0] = g_strdup (""); /* something to free */
}
g_strfreev (list);