mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
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:
parent
a28d87bfc9
commit
b941139254
@ -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>
|
2008-12-12 Ryan Lortie <desrt@desrt.ca>
|
||||||
|
|
||||||
* gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when
|
* gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when
|
||||||
|
@ -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 */
|
/* We really only need to escape spaces here, so allow lots of otherwise reserved chars */
|
||||||
g_string_append_uri_escaped (s, token,
|
g_string_append_uri_escaped (s, token,
|
||||||
G_URI_RESERVED_CHARS_ALLOWED_IN_PATH, TRUE);
|
G_URI_RESERVED_CHARS_ALLOWED_IN_PATH, TRUE);
|
||||||
|
|
||||||
|
g_free (token);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_ptr_array_free (tokens, TRUE);
|
g_ptr_array_free (tokens, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user