[mutter] xprops: free the text list content too



commit ea354e96cb1ca07b4341db179f58f72b202303df
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed May 7 18:27:04 2014 +0200

    xprops: free the text list content too
    
    A text list is an array of pointers into a buffer. Freeing the
    array is not enough, we need to free the buffer too.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729732

 src/x11/xprops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index 0362ec1..35b3749 100644
--- a/src/x11/xprops.c
+++ b/src/x11/xprops.c
@@ -753,7 +753,7 @@ text_property_to_utf8 (Display *xdisplay,
   ret = g_strdup (local_list[0]);
 
  out:
-  meta_XFree (local_list);
+  XFreeStringList (local_list);
   return ret;
 }
 


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