Updating branch refs/heads/master
to 8d40a86ce47bff03704558061c5fbf0c65290e61 (commit)
from 322d81a73e91d221b78f9858cf03a8f19f715ecd (commit)
commit 8d40a86ce47bff03704558061c5fbf0c65290e61
Author: Nick Schermer <[email protected]>
Date: Tue May 24 17:13:38 2011 +0200
Don't use freed memory (bug #7653).
dialogs/appearance-settings/main.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dialogs/appearance-settings/main.c
b/dialogs/appearance-settings/main.c
index 4ec41c4..d599ec5 100644
--- a/dialogs/appearance-settings/main.c
+++ b/dialogs/appearance-settings/main.c
@@ -443,9 +443,6 @@ appearance_settings_load_ui_themes (GtkListStore
*list_store,
/* Escape the comment because tooltips are markup, not
text */
comment_escaped = theme_comment ? g_markup_escape_text
(theme_comment, -1) : NULL;
-
- /* Close theme index file */
- xfce_rc_close (index_file);
}
else
{
@@ -462,6 +459,8 @@ appearance_settings_load_ui_themes (GtkListStore
*list_store,
COLUMN_THEME_COMMENT, comment_escaped, -1);
/* Cleanup */
+ if (G_LIKELY (index_file != NULL))
+ xfce_rc_close (index_file);
g_free (comment_escaped);
/* Check if this is the active theme, if so, select it */
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits