free the tokens when done with them

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
This commit is contained in:
Ryan Lortie 2008-12-12 20:59:54 +00:00 committed by Ryan Lortie
parent a28d87bfc9
commit b941139254
2 changed files with 7 additions and 0 deletions

View File

@ -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

View 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);