mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20: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>
|
||||
|
||||
GtkStyle is specific to a particular colormap. Metacity
|
||||
|
10
src/ui/ui.c
10
src/ui/ui.c
@ -671,10 +671,12 @@ meta_text_property_to_utf8 (Display *xdisplay,
|
||||
&list);
|
||||
|
||||
if (count == 0)
|
||||
return NULL;
|
||||
|
||||
retval = list[0];
|
||||
list[0] = g_strdup (""); /* something to free */
|
||||
retval = NULL;
|
||||
else
|
||||
{
|
||||
retval = list[0];
|
||||
list[0] = g_strdup (""); /* something to free */
|
||||
}
|
||||
|
||||
g_strfreev (list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user