mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00: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:
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);
|
||||
|
||||
|
Reference in New Issue
Block a user