From 3b08e16e7fac59b58af48e8d0717e6631f7bc6fd Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Fri, 17 Aug 2007 15:48:27 +0000 Subject: [PATCH] don't leak the cursor font 2007-08-17 Jens Granseuer * gnome-theme-info.c: (read_cursor_fonts): don't leak the cursor font svn path=/trunk/; revision=8010 --- capplets/common/ChangeLog | 4 ++++ capplets/common/gnome-theme-info.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/capplets/common/ChangeLog b/capplets/common/ChangeLog index febfabb7c..53bafcbb2 100644 --- a/capplets/common/ChangeLog +++ b/capplets/common/ChangeLog @@ -1,3 +1,7 @@ +2007-08-17 Jens Granseuer + + * gnome-theme-info.c: (read_cursor_fonts): don't leak the cursor font + 2007-08-12 Jens Granseuer * theme-thumbnail.c: (create_folder_icon), diff --git a/capplets/common/gnome-theme-info.c b/capplets/common/gnome-theme-info.c index 1ca241871..8c1db4f51 100644 --- a/capplets/common/gnome-theme-info.c +++ b/capplets/common/gnome-theme-info.c @@ -1796,7 +1796,7 @@ read_current_cursor_font (void) static void read_cursor_fonts (void) { - gchar* cursor_font; + gchar *cursor_font; gint i; static const gchar* builtins[][4] = { @@ -1849,6 +1849,8 @@ read_cursor_fonts (void) g_hash_table_insert (cursor_theme_hash_by_uri, theme_info->path, theme_info); add_data_to_hash_by_name (cursor_theme_hash_by_name, theme_info->name, theme_info); } + + g_free (cursor_font); } #endif /* !HAVE_XCURSOR */