[brasero/gnome-2-30] Fix a double free of setting value which could lead to a crash
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero/gnome-2-30] Fix a double free of setting value which could lead to a crash
- Date: Mon, 24 May 2010 13:54:07 +0000 (UTC)
commit c3a8ebc13c86922f46ccde489876b15d436b88e2
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]