free the tokens when done with them
authorRyan Lortie <desrt@desrt.ca>
Fri, 12 Dec 2008 20:59:54 +0000 (20:59 +0000)
committerRyan Lortie <ryanl@src.gnome.org>
Fri, 12 Dec 2008 20:59:54 +0000 (20:59 +0000)
2008-12-12  Ryan Lortie  <desrt@desrt.ca>

        * gio/gicon.c (g_icon_to_string_tokenized): free the tokens when done
        with them

svn path=/trunk/; revision=7743

ChangeLog
gio/gicon.c

index 0a205377b8c933ba66223ff0b9b22c5886571316..f36c968550a6676d782f99d8d3572b8f172861e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-12  Ryan Lortie  <desrt@desrt.ca>
+
+       * gio/gicon.c (g_icon_to_string_tokenized): free the tokens when done
+       with them
+
 2008-12-12  Ryan Lortie  <desrt@desrt.ca>
 
        * gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when
index d087c40e7b7ffa29c810de3f39e42bfa2275393d..32538b5b9f68e3a315c5f007b020b9550c2feb2e 100644 (file)
@@ -202,6 +202,8 @@ g_icon_to_string_tokenized (GIcon *icon, GString *s)
       /* We really only need to escape spaces here, so allow lots of otherwise reserved chars */
       g_string_append_uri_escaped (s, token,
                                   G_URI_RESERVED_CHARS_ALLOWED_IN_PATH, TRUE);
+
+      g_free (token);
     }
   
   g_ptr_array_free (tokens, TRUE);