[brasero] Fix a double free of setting value which could lead to a crash



commit 485451b9df2bf9def71bfed04ef5f87a607e0dae
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 24 11:14:19 2010 +0200

    Fix a double free of setting value which could lead to a crash

 src/brasero-layout.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/brasero-layout.c b/src/brasero-layout.c
index fbf8cd3..b4abc15 100644
--- a/src/brasero-layout.c
+++ b/src/brasero-layout.c
@@ -652,12 +652,12 @@ void
 brasero_layout_load (BraseroLayout *layout,
 		     BraseroLayoutType type)
 {
-	gchar *layout_id = NULL;
+	const gchar *layout_id = NULL;
 	GtkTreeModel *model;
 	gboolean sidepane;
 	GtkAction *action;
-	gpointer value;
 	GtkTreeIter iter;
+	gpointer value;
 
 	if (layout->priv->preview_pane)
 		brasero_preview_hide (BRASERO_PREVIEW (layout->priv->preview_pane));
@@ -744,7 +744,6 @@ brasero_layout_load (BraseroLayout *layout,
 
 	action = gtk_action_group_get_action (layout->priv->action_group, BRASERO_LAYOUT_NONE_ID);
 	gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), sidepane);
-	g_free (layout_id);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]