summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2008-12-12 20:59:54 +0000
committerRyan Lortie <ryanl@src.gnome.org>2008-12-12 20:59:54 +0000
commitb941139254e253c577da8259cbed6d4b0acd02b7 (patch)
treeb2106ac404e9e8e5d2d5220125c35dc3206ae099 /gio
parenta28d87bfc987d8b0aa27c6f9d996a31894fedf4a (diff)
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
Diffstat (limited to 'gio')
-rw-r--r--gio/gicon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gicon.c b/gio/gicon.c
index d087c40e7..32538b5b9 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);