metacity r4093 - in trunk: . src/ui



Author: tthurman
Date: Wed Jan 28 02:00:33 2009
New Revision: 4093
URL: http://svn.gnome.org/viewvc/metacity?rev=4093&view=rev

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



Modified:
   trunk/ChangeLog
   trunk/src/ui/ui.c

Modified: trunk/src/ui/ui.c
==============================================================================
--- trunk/src/ui/ui.c	(original)
+++ trunk/src/ui/ui.c	Wed Jan 28 02:00:33 2009
@@ -671,10 +671,12 @@
                                           &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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]