Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37518843
en ru br
ALT Linux repositórios
S:4.18.3-alt2
5.0: 4.6.1-alt1

Group :: Desktop gráfico/XFce
RPM: xfce4-settings

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: xfce4-settings-4.8.2-dont-use-freed-memory.patch
Download


From 72f1d690f26e6a0db44c40a0bf6202367294e218 Mon Sep 17 00:00:00 2001
From: Nick Schermer <nick@xfce.org>
Date: Tue, 24 May 2011 15:13:38 +0000
Subject: Don't use freed memory (bug #7653).
(cherry picked from commit 8d40a86ce47bff03704558061c5fbf0c65290e61)
---
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 */
--
cgit 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009