[brasero] Fix #586540 – crash in Open Folder: nautilus crashes after I...



commit bb0aeafaaac3c7512e9a820d41977f264872a2eb
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat Aug 1 10:21:29 2009 +0200

    Fix #586540 â?? crash in Open Folder: nautilus crashes after I...
    While finalizing BraseroTrackDataCfg we were not disconnecting signals from BraseroMediumMonitor

 libbrasero-burn/brasero-data-session.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/brasero-data-session.c b/libbrasero-burn/brasero-data-session.c
index 4b2732c..c2d6b95 100644
--- a/libbrasero-burn/brasero-data-session.c
+++ b/libbrasero-burn/brasero-data-session.c
@@ -550,8 +550,19 @@ static void
 brasero_data_session_finalize (GObject *object)
 {
 	BraseroDataSessionPrivate *priv;
+	BraseroMediumMonitor *monitor;
 
 	priv = BRASERO_DATA_SESSION_PRIVATE (object);
+
+	monitor = brasero_medium_monitor_get_default ();
+	g_signal_handlers_disconnect_by_func (monitor,
+	                                      brasero_data_session_disc_added_cb,
+	                                      object);
+	g_signal_handlers_disconnect_by_func (monitor,
+	                                      brasero_data_session_disc_removed_cb,
+	                                      object);
+	g_object_unref (monitor);
+
 	if (priv->loaded) {
 		g_object_unref (priv->loaded);
 		priv->loaded = NULL;



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