mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
a6c951352f
commit
1381f6d5f2
@ -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>
|
2009-01-27 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
GtkStyle is specific to a particular colormap. Metacity
|
GtkStyle is specific to a particular colormap. Metacity
|
||||||
|
@ -671,10 +671,12 @@ meta_text_property_to_utf8 (Display *xdisplay,
|
|||||||
&list);
|
&list);
|
||||||
|
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
return NULL;
|
retval = NULL;
|
||||||
|
else
|
||||||
|
{
|
||||||
retval = list[0];
|
retval = list[0];
|
||||||
list[0] = g_strdup (""); /* something to free */
|
list[0] = g_strdup (""); /* something to free */
|
||||||
|
}
|
||||||
|
|
||||||
g_strfreev (list);
|
g_strfreev (list);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user