Commit e12e8efb authored by Philippe Rouquier's avatar Philippe Rouquier

Fix double unref in nautilus extension

parent 84e382ae
......@@ -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,
......@@ -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)
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment