[brasero] Fix double unref in nautilus extension
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix double unref in nautilus extension
- Date: Wed, 24 Jun 2009 09:27:54 +0000 (UTC)
commit e12e8efb130cf390177a547ade9c45fcc46ab2da
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Jun 24 11:11:46 2009 +0200
Fix double unref in nautilus extension
libbrasero-burn/brasero-burn-options.c | 4 ++--
nautilus/nautilus-burn-extension.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-options.c b/libbrasero-burn/brasero-burn-options.c
index e9c38c4..47d2b04 100644
--- a/libbrasero-burn/brasero-burn-options.c
+++ b/libbrasero-burn/brasero-burn-options.c
@@ -914,8 +914,8 @@ brasero_burn_options_set_property (GObject *object,
switch (prop_id)
{
case PROP_SESSION: /* Readable and only writable at creation time */
- priv->session = BRASERO_SESSION_CFG (g_value_get_object (value));
- g_object_ref (priv->session);
+ priv->session = g_object_ref (g_value_get_object (value));
+
g_object_notify (object, "session");
g_signal_connect (priv->session,
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index f92e60c..985589f 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -202,7 +202,7 @@ write_activate (GtkWindow *toplevel)
BraseroSessionCfg *session;
GtkWidget *name_options;
GtkWidget *options;
- GtkWidget *box;
+ GtkWidget *box;
gchar *string;
if (nautilus_disc_burn_is_empty (toplevel))
@@ -229,6 +229,7 @@ write_activate (GtkWindow *toplevel)
NULL);
g_free (string);
gtk_widget_show_all (options);
+
gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
/* create the options box */
@@ -237,8 +238,7 @@ write_activate (GtkWindow *toplevel)
gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
/* NOTE: set the disc we're handling */
- launch_brasero_on_window_session (session, options, toplevel);
- g_object_unref (session);
+ launch_brasero_on_window_session (session, box, toplevel);
/* cleanup */
g_object_unref (session);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]