[gnome-color-manager: 2/3] trivial: fix up a crash if we abort calibration and then unplug the colorimeter



commit 7d280d7b9c9d9aa0c967dd93c5828247b205ac2f
Author: Richard Hughes <richard hughsie com>
Date:   Mon Feb 22 14:59:36 2010 +0000

    trivial: fix up a crash if we abort calibration and then unplug the colorimeter

 src/gcm-calibrate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index ee95abe..ae3e992 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -1146,6 +1146,7 @@ gcm_calibrate_finalize (GObject *object)
 	g_free (priv->device);
 	g_free (priv->serial);
 	g_object_unref (priv->colorimeter);
+	g_signal_handlers_disconnect_by_func (calibrate->priv->colorimeter, G_CALLBACK (gcm_prefs_colorimeter_changed_cb), calibrate);
 	g_object_unref (priv->calibrate_dialog);
 
 	G_OBJECT_CLASS (gcm_calibrate_parent_class)->finalize (object);



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