From b941139254e253c577da8259cbed6d4b0acd02b7 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 12 Dec 2008 20:59:54 +0000 Subject: [PATCH] free the tokens when done with them 2008-12-12 Ryan Lortie * gio/gicon.c (g_icon_to_string_tokenized): free the tokens when done with them svn path=/trunk/; revision=7743 --- ChangeLog | 5 +++++ gio/gicon.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0a205377..f36c9685 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-12 Ryan Lortie + + * gio/gicon.c (g_icon_to_string_tokenized): free the tokens when done + with them + 2008-12-12 Ryan Lortie * gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when diff --git a/gio/gicon.c b/gio/gicon.c index d087c40e..32538b5b 100644 --- a/gio/gicon.c +++ b/gio/gicon.c @@ -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); -- 2.34.1